The "Split the array into subarrays of length 5, now sorting all of the arrays is O(n) instead of O(n log n)" feels like cheating to me
Later
(i was going to delete this comment, but for posterity, i misread --- sorting the lists, not the contents of the list, sure)