Use this calculator to sort a list A–Z or Z–A, or to reverse the current order. Paste items into Input List, choose an operation, and read the result in Output.

0 items

Use commas, spaces, or new lines to separate items. Sorting uses natural order (numbers and letters). Reverse keeps every item, including duplicates.

What are Sort and Reverse?

Sorting rearranges items into a defined order (for example alphabetical A–Z). Reversing flips the current sequence so the last item becomes first — without comparing values. Both are common list operations when cleaning or presenting data.

Sort A–Z

Unsorted list bars rearranged into ascending order

Ascending order places earlier letters (or smaller numbers) first.

Example input:

  • banana, apple, cherry, date

Sorted A–Z:

  • apple, banana, cherry, date
Try it!

Sort Z–A

Descending order is the opposite of A–Z: later letters (or larger numbers) come first.

Example:

  • date, cherry, banana, apple
Try it!

Reverse

Reverse does not sort. It simply reads the list from the end back to the start, keeping all duplicates and the original relative positions inverted.

Example: a, b, cc, b, a

Try it!