Hacker News new | past | comments | ask | show | jobs | submit
Right, that's why I wrote "a generic sorting algorithm". Your case adds the integer limit which allows it to avoid O(nlogn) minimum.