Cyclically Sort a List
2y 6mon ago by programming.dev/u/mac in code_golf@programming.dev from codegolf.stackexchange.comGiven a list of Integers greater than zero, Sort each of the unique values in ascending order, then repeat the process on the remaining duplicate values and append.
Example:
[1,5,2,2,8,3,5,2,9] ==> [1,2,3,5,8,9,2,5,2]