Sort Lines
Sort lines of text alphabetically, numerically, in reverse order, or shuffle them randomly.
How to Sort Lines of Text
Paste your text into the input area with one item per line, then click one of the sort buttons. Sort A-Z arranges lines in ascending alphabetical order. Sort Z-A reverses the order. Sort Numeric interprets each line as a number and sorts from smallest to largest, which is useful for sorting numeric data, IDs, or measurements. Reverse flips the current line order without alphabetizing. Shuffle randomizes the order, which is great for creating random selections or shuffling quiz questions. You can also enable the case-insensitive toggle to ignore letter case when sorting alphabetically, so 'banana' and 'Banana' are treated equally.
Practical Uses for Line Sorting
Sorting lines is one of those simple operations that comes up constantly. Developers sort import statements, dependency lists, and configuration entries to maintain clean codebases. Writers sort glossary terms, bibliography entries, and keyword lists. Data analysts sort exported columns to find patterns, duplicates, or outliers. The Shuffle option is popular for randomizing lists of names for team assignments, drawing winners from a list, or reordering flashcards for study sessions. Combined with the Remove Duplicates tool, you can quickly clean and organize any list. Since the tool runs entirely in your browser, it handles large lists quickly without any server round-trip.