Instead of doing a quicksort, you can store everything in a map. Because the map is alphabetical it's already sorted.
It seems like instead of doing a quicksort you could instantly put everything in a map and get it back as a o1 operation.
Why is quicksort done when you can just put everything in a map? The disadvantage is running out of memory but then you're implying the memory is somewhat of a fraud because you have more discrete values than the memory can store anyway.
Even so you can just layer the map to get the same result, if values crowd into one key then you can create a map under that key and it barely changes the complexity. There's no notation to express this but it would be o(1)(n/m) where n is the number of possible entries divided by the firmware limits of the memory to virtualize addresses.
The example function would be treemap.