Sort Integer Digits
Sort the digits within each integer in ascending or descending order.
Paste your integers, pick ascending or descending, and each number's digits get rearranged in that order. Negatives keep their minus sign, and very long numbers work fine since the sort runs on digits as strings. And everything runs in your browser. Nothing gets uploaded.
Frequently Asked Questions
What does sorting digits mean?
Each integer's digits are rearranged so they appear in order. For example, 53201 sorted ascending becomes 01235, and descending becomes 53210.
Are leading zeros shown?
Yes. If zeros sort to the front (ascending), they are displayed. For example, 3020 ascending becomes 0023.
How are negative numbers handled?
The minus sign is preserved and only the digit portion is sorted.
Can I sort digits of very large numbers?
Yes. Since the tool works on string representations of digits, there is no size limit.