Hongmu Notes

🆗 Sort text numeric column in ascending order

Arrange the numbers in numerical order from smallest to largest, with one result per line.

Sort text numeric column in ascending order

Instructions for use

  • Pasting a list of numbers will sort them in ascending numerical order in real time, with one number per line
  • Both commas and newlines can be used as delimiters, and empty segments will be ignored and counted.
  • If you need to sort numbers from large to small, please use the "Sort numbers from large to small" tool.

What can this tool do?

  • Arrange numbers separated by commas or newlines in ascending order of value
  • The result is one number per line, without extra line breaks at the end of the line.
  • Empty segments will be ignored and a number will be given in the status line. Non-numeric items will be prompted.
  • The results can be copied and exported as TXT, and the original text will not be altered.

Actual measurement effect

inputoutput
2
3
10
1
1
2
3
10
100,20,33
20
100

Compare numerically, so 10 comes after 2; commas and newlines can be used as separators.

Usage tips

  • If you need to sort numbers from large to small, please use the "Sort numbers from large to small" tool.
  • Contents containing decimal points or negative signs will also be compared numerically.
  • Each row of the result has a number. When pasted into the table, it will be automatically sorted into rows.

All keywords and tutorials 12

❓ FAQ

how it is sorted
Use newlines and English commas as delimiters, arrange each paragraph in ascending order of numerical size, and then output a number in each line.
Is it a numerical comparison or a text comparison?
Number comparison. So 2 will come before 10 (10 will come before 2 when comparing by text).
What happens to non-digital content?
Will not be discarded: non-numeric items will participate in sorting (treated as 0 in numeric comparison), and the status line will prompt how many items are not numeric, making it easier for you to check the data.
What is the difference between "sort numbers from large to small"
In the opposite direction: this tool sorts the values in ascending order (smallest to largest) and puts one result in each line; "Sort numbers from large to small" sorts the numbers in descending order and connects them with commas.
Will the data be uploaded?
No. Sorting is done locally in the browser, and input and results do not pass through the server or be written to local storage.