Re: [PATCH] shortlog: use a stable sort
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 14, 2022, 16:28 UTC
- Message-ID
- <xmqqtu7j7j6s.fsf@gitster.g>
- In-Reply-To
- <pull.1290.git.1657813429221.gitgitgadget@gmail.com>
"Johannes Schindelin via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 8 quoted lines
> When sorting the output of `git shortlog` by count, a list of authors in > alphabetical order is then sorted by contribution count. Obviously, the > idea is to maintain the alphabetical order for items with identical > contribution count. > ... > if (log->sort_by_number) > - QSORT(log->list.items, log->list.nr, > + STABLE_QSORT(log->list.items, log->list.nr,
Makes perfect sense. Will queue.
Thanks.