Y
Hacker News
new
|
ask
|
show
|
jobs
by
kccqzy
21 days ago
Just do four bucket sorts, once on each byte of the 32-bit integer. (Bucket sorts are stable sorts.) I benchmarked this and it was faster than quick sort.