T TextTools

Sort Lines

Sort a list of lines alphabetically, by length, or numerically — ascending or descending.

Advertisement

How to use Sort Lines

  1. Paste your lines.
  2. Pick a sort mode and direction.
  3. Optionally remove empty lines.
  4. Copy the sorted result.

What is Sort Lines?

Sorting a list of lines is useful for organizing data, cleaning lists, or preparing input for further processing. This tool offers three sort modes: alphabetical (with optional case-insensitivity), by line length, or numeric (parsing each line as a number).

Advertisement

FAQ

Does numeric sort handle decimals?
Yes. Lines starting with valid numbers (including decimals and negatives) are compared numerically.
What happens to non-numeric lines in numeric mode?
They sort after all numeric lines.

Related tools