Sort Lines
Sort text lines alphabetically or numerically
Sort A-Z
A, B, C...
Sort Z-A
Z, Y, X...
Sort 1-9
1, 2, 3...
Sort 9-1
9, 8, 7...
Sort Short-Long
a, ab, abc...
Sort Long-Short
abc, ab, a...
Random Sort
Random Order
How to Use
Sort Lines Tool Guide
This tool helps you sort lines of text in various ways:
- Alphabetically (A-Z): Sort lines in ascending alphabetical order
- Alphabetically (Z-A): Sort lines in descending alphabetical order
- Numerically (1-9): Sort lines by numbers in ascending order
- Numerically (9-1): Sort lines by numbers in descending order
- Length (Short-Long): Sort lines by length from shortest to longest
- Length (Long-Short): Sort lines by length from longest to shortest
- Random: Randomly shuffle the lines
- Remove Duplicates: Remove duplicate lines while sorting
Features
- Supports case-sensitive and case-insensitive sorting
- Trim whitespace before sorting
- Ignore empty lines
- Natural sort for alphanumeric text
Related Tools
Text Counter & Word Statistics
Count characters, words, sentences and analyze text statistics
Text Case Converter
Convert text between different cases: uppercase, lowercase, title case, sentence case, etc.
Text Difference Comparison
Compare two texts and highlight the differences between them
Full/Half Width Text Converter
Convert text between full-width and half-width characters
Text Encryption/Decryption
Encrypt and decrypt text using various algorithms
Regular Expression Tester
Test and debug regular expressions with real-time matching
Chinese to Pinyin Converter
Convert Chinese characters to pinyin with tone marks, numbers or no tones
Word Counter
Count English words in text
Remove Duplicate Lines
Remove duplicate lines from text while preserving order
CSV Editor
A powerful CSV/TSV file editor with syntax highlighting and formatting features