User talk:2A02:C7D:14D2:2B00:A55F:4E21:E1B6:7887

Counting sort
Please do not change the pseudocode in counting sort to use count[key[x]]-- instead of count[key[x]]++ in the final loop. The algorithm can be made to work that way, but it is not stable, making it useless as a subroutine for radix sort. The version of the pseudocode in the article has been chosen to make it a stable sorting algorithm. —David Eppstein (talk) 22:37, 20 February 2018 (UTC)