]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/shortlog.c
shortlog: use a stable sort
[thirdparty/git.git] / builtin / shortlog.c
index 35825f075e3b219bb36bbffe6907f37b5140907a..086dfee45aa8be8cc316132ce29bfb93c2ef295a 100644 (file)
@@ -443,7 +443,7 @@ void shortlog_output(struct shortlog *log)
        struct strbuf sb = STRBUF_INIT;
 
        if (log->sort_by_number)
-               QSORT(log->list.items, log->list.nr,
+               STABLE_QSORT(log->list.items, log->list.nr,
                      log->summary ? compare_by_counter : compare_by_list);
        for (i = 0; i < log->list.nr; i++) {
                const struct string_list_item *item = &log->list.items[i];