01How it works
For every value, spawn a thread that sleeps for a duration proportional to that value, then appends itself to the output. Smaller values wake first, so the output emerges in order. The sorting is done by the operating system, not by the algorithm.