×

Counting sort

Sorting algorithm
In computer science, counting sort is an algorithm for sorting a collection of objects according to keys that are small positive integers; that is, it is an integer sorting algorithm. Wikipedia
Worst-case complexity: n+r
Stable: Yes