Sort Lines
Sort lines alphabetically, in reverse, by the number they contain, or by length, or shuffle them with a secure random source.
Runs on your device
Result
Results appear here as you type.
What it does
Alphabetical sorting uses natural ordering, so "item 2" comes before "item 10". Numeric sorting finds the first number on each line, which suits price lists and scores.
How to use it
- Paste one item per line.
- Choose how to sort.
- Copy the result.
Example
The example fills in realistic values and runs the tool. Select Try an example above to see it.
When it helps
- Alphabetising references.
- Ranking scores.
- Randomising quiz question order.
Questions
What happens to lines with no number in numeric mode?
They are placed at the end.
Is shuffle truly random?
It uses a Fisher and Yates shuffle driven by crypto.getRandomValues.
More text & writing tools
See all 20- Find and Replace Find and replace text in bulk with options for whole words, case insensitive matching and regular expressions with $1 capture references.
- Whitespace & Invisible Character Cleaner Trim lines, collapse repeated spaces, remove blank lines and strip invisible zero width and nonbreaking spaces from copied text.
- Readability Score Checker Measure how easy English text is to read with Flesch Reading Ease, Flesch Kincaid Grade, Gunning Fog and Coleman Liau scores.
- Word Frequency Counter List the most frequent words in a text with counts and percentages, optionally ignoring common English stop words. Export the table as CSV.
- Markdown to HTML Converter Convert GitHub flavoured Markdown (tables, task lists, fenced code) into clean HTML you can paste into a CMS or email template.
- Text to Speech Read any text aloud with natural voices built into your device. Choose voice, speed and pitch, and pause or resume at any time. Free, no sign up.
People also use
Browse all 200 tools- XML Sitemap Generator Create a valid sitemap.xml from a list of URLs. Duplicates are removed, URLs are XML-escaped and entries from other domains are flagged. SEO
- Pomodoro Timer A Pomodoro focus timer with 25 minute work sessions, short and long breaks, adjustable lengths and a count of completed sessions. Time & productivity
- Calorie Calculator (TDEE) Estimate how many calories you burn per day (TDEE) with the Mifflin-St Jeor equation, plus targets to maintain, lose or gain weight steadily. Health & fitness
- Rotate & Flip Image Rotate an image by 90, 180 or 270 degrees and flip it horizontally or vertically. Also fixes sideways phone photos by applying EXIF orientation. Image