Skip to content
MyDailyTool

Sort Lines / Sort List Online

Sort a list of words, names, or numbers — alphabetically A→Z or Z→A, numerically, or randomly. Paste any list and get sorted results instantly.

How to use the sort lines / sort list online

Paste your list — one item per line or comma-separated — then pick a sort mode. The output uses the same format as the input. Results appear instantly.

Formula & explanation

A→Z and Z→A use lexicographic (Unicode) order. 1→9 and 9→1 parse each line as a float so 10 sorts after 9, not before. Shuffle uses the Fisher-Yates algorithm.

Examples

Names: Alice, Charlie, Bob → Alice, Bob, Charlie. Numbers: 10, 9, 2 → 2, 9, 10 (1→9 mode) or 10, 9, 2 (9→1 mode).

Frequently asked questions

Why does A→Z put '10' before '9'?
Alphabetical sort compares characters left to right, so '1' comes before '9'. Use 1→9 or 9→1 to sort by actual number value.
Is alphabetical sort case-sensitive?
Yes — uppercase letters sort before lowercase in Unicode order. Convert to the same case first using the Case Converter tool if needed.
What algorithm does Shuffle use?
Fisher-Yates (Knuth) shuffle — produces an unbiased random permutation of the lines.
Can I sort by a specific column in CSV data?
Not directly — this tool sorts whole lines. Extract the column first with the Column Picker tool, sort it, then re-combine.

Related text & string tools