Loading…

Sort a List

Tools and Utilities • Text and List Utilities

View all topics

Natural sort compares embedded numbers like humans do, so item2 comes before item10.
Tip: Numeric sort uses the first number found in each item; non-numeric lines are placed after numeric ones (and keep relative order among themselves).

Ready

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What is natural sort and when should it be used?

Natural sort orders text that contains numbers in a human-friendly way, so item2 comes before item10. It is useful for filenames, labels, and lists where numbers are part of the text.

How does numeric sorting work in this list sorter?

Numeric sorting uses the first number found in each line as the key. Lines without a number are placed after numeric lines and keep their relative order among themselves.

Why do "Apple" and "apple" sometimes sort together?

If Case-insensitive compare is enabled, uppercase and lowercase are treated as equal for comparison. This changes grouping and ordering compared with a case-sensitive sort.

What does trimming spaces change in sorting results?

Trim spaces removes extra spaces at the start or end of each line before sorting. This prevents invisible whitespace from affecting comparisons and ordering.

How can I change the sorted output into a comma-separated list?

Select Comma-separated under Output format before clicking Sort. The result will be formatted as a single comma-separated list instead of one item per line.