An O(n) sorting algorithm. Please don't use this in production.