How to sort array without changing order of same values

I’m just going to carefully point out to @AllanP that a lexicographical ordering of numeric data is going to fail when there’s an order of magnitude difference.