A unique and extremely fast algorithm for sorting numbers lexicographically.
The credit for the solution goes to Chaim Fishman.
The fast digit count function was taken from the following: https://stackoverflow.com/questions/2189800/how-to-find-length-of-digits-in-an-integer, but any implementation could work.
Some edge cases may exist, as a by-product of floating-point imprecision for very large numbers.