Is this cache friendly on a modern cpu? On the face of it, it seems to be quite cache unfriendly.
Note that if your data is uniformly randomly distributed the caching will hurt and it will be slower than quicksort, as this is quicksort's optimal use case.