How it works
Compares each line using the selected locale and returns them in ascending order. Numeric portions are compared by value, while letter case is treated as a base-level difference.
Sort text lines in ascending or descending order.
pear apple banana
apple banana pear
Compares each line using the selected locale and returns them in ascending order. Numeric portions are compared by value, while letter case is treated as a base-level difference.
Use it to organize names or version labels. With numeric sorting, `item10`, `item2`, `item1` becomes `item1`, `item2`, `item10`.
Leading and trailing spaces are not trimmed, so inspect whitespace and the selected locale when the order looks unexpected. Blank lines are entries too; descending mode simply reverses the comparison.
No. Numeric comparison puts `item2` before `item10`. Ordering follows the selected locale, and strings that differ only by letter case compare at the same base sensitivity.
The input area shows the accepted format and available controls for this tool.
No. Your input is handled in the browser you are using. Privacy