Sort Lines Alphabetically
Sort lines alphabetically. Processing for supported tools happens locally in your browser.
Sort lines alphabetically. Processing for supported tools happens locally in your browser.
Sorting lines is useful for alphabetizing a short list, reference names or labels. Keep the source list and check how capitalization, blank lines and numeric values are ordered.
Clean the list first so that blank lines and extra spaces do not affect the order. Keep a copy of the original, because sorting changes the order of the lines. For a list that contains duplicates use Remove Duplicate Lines after sorting. For rows with several columns use spreadsheet software, because this tool sorts whole lines of text.
No. Sorting changes the line order. Keep the source if the original sequence has meaning.
This tool processes pasted text lines, not structured spreadsheet rows. Use spreadsheet software for multi-column data.
Yes, with the natural order option. A plain text sort would put 10 before 2.
Yes. Choose Z to A.
No. It sorts whole lines. Use a spreadsheet for columns.
The six lines banana, Apple, cherry, 10, 9, 2 sort A to Z with the default setting to 2, 9, 10, Apple, banana, cherry: numbers are ordered by value and letter case is ignored. Switch the comparison to Case-sensitive and the result changes to 10, 2, 9, Apple, banana, cherry, because text order puts 10 before 2.
Want more detail, examples and answers to common questions? Read the Sort Lines guide.