Sort one digit at a time, right-to-left, using stable counting sort per pass.
LSD Radix Sort: O(d·(n+k)) time, O(n+k) space, stable. Used inside CUB GPU sort, ClickHouse, and TeraSort. Beats Tim/Quick sort for large fixed-width integer arrays.