Comment Comment by yyyk Right, that's why I wrote "a generic sorting algorithm". Your case adds the integer limit which allows it to avoid O(nlogn) minimum. parent yyyk 14 days ago