Creator Operations Desk
Sort Lines
Sort text lines A–Z, Z–A, numerically or randomly in your browser. Random order prefers Web Crypto and clearly identifies a Math.random fallback when necessary.
Last updated:
Sort text lines
What does Sort Lines do?
Sort Lines organizes keywords, tags, product lists, identifiers and sampling lists. It supports alphabetical ascending and descending order, numeric ascending order and random order while retaining the original relative order of equal items to avoid unnecessary data movement.
Sorting rules
Alphabetical modes use the local Unicode collator with case-insensitive comparison. Numeric mode puts finite numeric lines first in ascending value, then non-numeric lines. Random mode uses Fisher–Yates with Web Crypto when available and clearly states a Math.random fallback otherwise.
Mixed-list example
For zebra, Apple, 10 and 2, A–Z uses local text comparison. Numeric mode places valid numbers such as -1, 2 and 10 first while retaining non-numeric lines afterward.
How to use
- Enter one item per line.
- Choose A–Z, Z–A, numeric ascending or random order.
- Review the output and random source, then copy the result.
Frequently asked questions
How does numeric mode treat non-numeric lines?
Finite numeric values appear first in ascending order. Lines that are not finite numbers remain afterward and use text ordering.
Does random order use secure randomness?
When the browser offers Web Crypto, it is preferred and shown as the source. Otherwise the tool clearly reports its Math.random fallback.
Are identical lines removed during sorting?
No. Sorting does not deduplicate. Equal lines remain and keep their original relative order.