Sort Lines

Sort text lines alphabetically or numerically

Sort A-Z
A, B, C...
Sort Z-A
Z, Y, X...
Sort 1-9
1, 2, 3...
Sort 9-1
9, 8, 7...
Sort Short-Long
a, ab, abc...
Sort Long-Short
abc, ab, a...
Random Sort
Random Order

How to Use

Sort Lines Tool Guide

This tool helps you sort lines of text in various ways:

  • Alphabetically (A-Z): Sort lines in ascending alphabetical order
  • Alphabetically (Z-A): Sort lines in descending alphabetical order
  • Numerically (1-9): Sort lines by numbers in ascending order
  • Numerically (9-1): Sort lines by numbers in descending order
  • Length (Short-Long): Sort lines by length from shortest to longest
  • Length (Long-Short): Sort lines by length from longest to shortest
  • Random: Randomly shuffle the lines
  • Remove Duplicates: Remove duplicate lines while sorting

Features

  • Supports case-sensitive and case-insensitive sorting
  • Trim whitespace before sorting
  • Ignore empty lines
  • Natural sort for alphanumeric text