Line Sorter and Deduplicator
You have got a list. It is unsorted. It has duplicates. It might have a header row you do not want shuffled. Paste it here.
Paste your list -- one item per line. Pick a sort order. Toggle deduplication if you need it. The output appears instantly.
Sort options
- A to Z -- standard alphabetical. Toggle case-insensitive for dictionary order.
- Z to A -- reverse alphabetical.
- 0 to 9 -- numeric sort. Fixes the classic problem where alphabetical sorting puts 10 before 2.
- 9 to 0 -- reverse numeric.
- By length -- shortest to longest line. Handy for finding your longest paragraphs or shortest variable names.
- By word count -- lightest to heaviest.
- Shuffle -- randomizes the order. Fair prize draws, A/B group assignment.
Deduplication
Turn it on and identical lines collapse to one. You can keep the first occurrence or the last. Switch to "unique only" mode to see just the lines that appeared exactly once -- useful for finding items that exist in one list but not another.
Count mode adds a frequency column so you can see which lines repeat most. Great for log analysis: paste your error log, sort by frequency, and your biggest problem is right at the top.
Gotchas
- Header rows. If your list has a header, exclude it from sorting. Otherwise "Name" sorts alphabetically among your actual names.
- Whitespace matters for deduplication.
appleandapple(trailing space) are different lines. Trim whitespace first. - ISO dates sort chronologically in alphabetical order.
2024-01-15,2024-03-02,2024-12-01-- no special date sorting needed. - Stable sorting. Sorts preserve the original order of equal items. Sort by secondary key first, then primary, for multi-level ordering.