Name for this sorting algorithm
This algorithm is essentially counting sort
https://en.m.wikipedia.org/wiki/Counting_sort?fbclid=IwAR1XKmg3EuxUBqJOfTm4HTo8YuOXgP_ZDHy6qIBDR_4cTUqr70DTeT9wiRw
This algorithm can be computed in a single step when there is a diagonal symmetry in the Ferrer diagram
E.g permutations of 5,3,2,1,1
Or permutations of 4,3,2,1