Skip to content
Akshar tools

लाइनें क्रम से लगाएँ

Sort lines

Put any list in order: alphabetical, natural, numeric, by length, reversed or shuffled.

Runs in your browser · nothing uploaded

Paste some text to start.

How to use it

  1. 01Paste your list, one item per line.
  2. 02Choose the order: A → Z, Z → A, natural, by number, by length, reverse or shuffle.
  3. 03Copy or download the sorted list.
Natural sort

file10.txt file2.txt file1.txt

file1.txt file2.txt file10.txt

About this tool

Plain alphabetical sorting puts “file10” before “file2”. Natural sort reads the numbers inside text, so chapters, file names and roll numbers come out the way people expect. By number sorts on the first number in each line (1,200 and -3.5 are understood); lines without a number go last.

By length orders lines from shortest to longest, counting an emoji or Hindi conjunct as one character. Shuffle gives a random order and only reshuffles when you press “Shuffle again”. Hindi lines sort in Devanagari dictionary order.

Everything runs in your browser. Your text is never uploaded or stored, so it is safe for drafts, code and private documents.

हिंदी में मदद

किसी भी सूची को A से Z, Z से A, संख्या के हिसाब से, लंबाई के हिसाब से क्रम में लगाएँ, या उल्टा और रैंडम करें। हिंदी शब्द देवनागरी शब्दकोश क्रम में लगते हैं।

Questions

What is natural sort?

It compares numbers inside text by value, so “Chapter 2” comes before “Chapter 10”. Ordinary A–Z sorting compares character by character and gets this wrong.

Is sorting case-sensitive?

By default upper and lower case are treated alike. Untick “Ignore upper/lower case” to sort strictly by character code, which puts capitals first.

Is the shuffle random?

Yes, it uses your browser's random numbers. It stays put while you edit, and “Shuffle again” gives a new order.