Clean up lists and inventories: paste lines, pick order, and copy sorted output. Remember lexicographic sort differs from numeric sort for “1, 2, 10”.
Text
Options
Sorted
Related tools
How it works
The whole list is split on newlines, sorted, and rejoined.
Locale-aware compare uses the browser’s default locale.
Blank lines
Empty lines are included and sort among other strings.
Privacy
Local only.
Common questions
- Numeric sort?
- Strings are compared as text, so 1, 10, 2 order lexically, not numerically.
- Unicode?
- Yes. Sorting follows your browser’s collation rules.
- Stable sort?
- ECMAScript sort is not guaranteed stable in all engines; ties may reorder.
- Paragraphs?
- Only line breaks define rows; paragraphs with soft wraps are one line if no newline.