Number sorter
Sort numbers in ascending or descending order with customizable separators
Input
Output
Readme
What is number sorting and why is it useful?
Number sorting is the process of arranging numerical values in a specific order, typically ascending (smallest to largest) or descending (largest to biggest). It's a fundamental operation in data analysis and mathematics that helps identify patterns, find extremes, and organize information for easier interpretation. Sorting makes it simple to find the minimum, maximum, median, or other statistical properties of a dataset.
Tool description
The Number Sorter is a versatile tool that takes a list of numbers separated by various delimiters and arranges them in ascending or descending order. It automatically detects common separators like newlines, spaces, commas, and semicolons, or you can define your own custom separator for unique data formats. The tool intelligently handles different input formats and provides clean, organized output using your preferred separator.
Features
- Bidirectional sorting: Sort numbers in ascending or descending order
- Multiple separator support: Automatically handles newlines, spaces, commas, and semicolons
- Custom separator option: Define your own separator for unique data formats (up to 10 characters)
Examples
Input (comma-separated):
42, 15, 8, 23, 4, 16, 89, 3Output (ascending, comma-separated):
3, 4, 8, 15, 16, 23, 42, 89Input (newline-separated):
100.5
23.7
-45.2
0
78.9Output (descending, newline-separated):
100.5
78.9
23.7
0
-45.2Input (space-separated with decimals):
3.14 2.71 1.41 1.73 0.577Output (ascending, space-separated):
0.577 1.41 1.73 2.71 3.14