᠎᠎᠎          
51K

List sorter

World's simplest list tool

This is a super simple browser-based application that sorts items in a list and arranges them in increasing or decreasing order. You can sort the items alphabetically or numerically. You can also remove duplicate and empty items, as well as trim individual items that have whitespace around them. You can use any separator character to separate the input list items or alternatively use a regular expression to separate them. Additionally, you can create a new delimiter for the sorted output list. Created by list geeks from team Browserling.
We put a browser in your browser! Browserling
Check out our project Browserling – get a browser in your browser and browse while you browse.
Input Item Separator
Delimit input list items with a character.
Delimit input list items with a regular expression.
Set a delimiting symbol or regular expression.
Sort Method
Select a sorting method.
Select sorting order.
Delete duplicate list items.
Delete no-character list items.
Remove spaces around items.
Sorted Item Separator
Use this symbol as a joiner between items in a sorted list.
List sorter tool What is a list sorter?
This online tool changes the order of all list items so that they are sorted. When it rearranges the items, they can go either in ascending or descending order. Since lists can contain anything, including letters and numbers, you can switch between two sorting methods: alphabetical and numerical. The alphabetical method rearranges all the items according to the positions of characters in the ASCII/Unicode table. The numerical method, sorts numbers based on their magnitude. If there are also letters or characters when the numerical method is used, then they are sorted in alphanumerical order. You can switch between these sorting methods in the options as well as select the sort order of items there. Sometimes items in the list may contain whitespaces around them, so we also added an option to get rid of them and trim them. Additionally, you may remove duplicate and empty list items from the sorted list. When working with lists, they may have various formats (for example, comma-separated, bar-separated, tab-separated, or a single vertical column), so we made this program as generic as possible and it supports all possible list formats. When you load your list, you just have to tell this program how to split it into items. To do that, you just have to specify a list item delimiter character in the "Use a Symbol Separator" option or enter a regular expression that matches multiple delimiter variations in the "Use a Regex Separator" mode. Last but not least, you can specify a custom item delimiter for the output list. If you need to sort a list in random order, then you can use our Randomize a List tool. Listabulous!
List sorter examples Click to use
Numeric List Sorting
In this example, we sort a list of perfect numbers in descending order. As all the input items are numbers, we choose the numerical sorting mode. This way, the program compares the numbers by their magnitude and puts them in order from the largest number to the smallest. Perfect numbers are listed in a column, so we separate them with a newline character, and we also use the same newline in the sorted list.
6 28 496 8128 33550336 8589869056 137438691328 2305843008139952128 2658455991569831744654692615953842176
2658455991569831744654692615953842176 2305843008139952128 137438691328 8589869056 33550336 8128 496 28 6
Required options
These options will be used automatically if you select this example.
Delimit input list items with a character.
Set a delimiting symbol or regular expression.
Select a sorting method.
Select sorting order.
Delete duplicate list items.
Delete no-character list items.
Remove spaces around items.
Use this symbol as a joiner between items in a sorted list.
Sort Words Alphabetically
In this example, we sort all words in a tongue twister alphabetically. To define words as individual elements of the list, we match them by the regular expression "/ +/", which separates them by the whitespace characters. We select the ascending sorting order (from "a" to "z") and remove all duplicate words. As a result, we get a list of all unique words in alphabetical order that are then separated by em dashes.
give papa a cup of proper coffee in a copper coffee cup
a — coffee — copper — cup — give — in — of — papa — proper
Required options
These options will be used automatically if you select this example.
Delimit input list items with a regular expression.
Set a delimiting symbol or regular expression.
Select a sorting method.
Select sorting order.
Delete duplicate list items.
Delete no-character list items.
Remove spaces around items.
Use this symbol as a joiner between items in a sorted list.
Sort a Car Price List
In this example, we rearrange the names of cars with their cost in alphabetic order. The list of cars has two columns that are separated by commas and semicolons. To find the items of the input list, we use the regular expression "/,|;/". This regular expression matches either a comma or a semicolon. We trim list items, remove empty elements, sort the car brands in ascending order, and return a much simpler and easier to read version price list.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;Ford – $15000, Volvo – $18000; ;Tesla – $22000, BMW – $30000; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;VW – $23000, Toyota – $25000; ;KIA – $16000, Audi – $21000; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Audi – $21000 BMW – $30000 Ford – $15000 KIA – $16000 Tesla – $22000 Toyota – $25000 VW – $23000 Volvo – $18000
Required options
These options will be used automatically if you select this example.
Delimit input list items with a regular expression.
Set a delimiting symbol or regular expression.
Select a sorting method.
Select sorting order.
Delete duplicate list items.
Delete no-character list items.
Remove spaces around items.
Use this symbol as a joiner between items in a sorted list.
Pro tips Master online list tools
You can pass input to this tool via ?input query argument and it will automatically compute output. Here's how to type it in your browser's address bar. Click to try!
https://onlinelisttools.com/sort-list?input=6%0A28%0A496%0A8128%0A33550336%0A8589869056%0A137438691328%0A2305843008139952128%0A2658455991569831744654692615953842176&string-separator=true&input-separator=%5Cn&sort-method=numerically&sort-order=decreasing&remove-duplicates=false&remove-empty-items=false&trim-items=false&join-character=%5Cn
All list tools
Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!
Quickly print all distinct items of a list.
Quickly print all repeating items of a list.
Quickly count the number of items in a list.
Quickly find certain items in a list.
Quickly print all list items in reverse order.
Quickly sort list items alphabetically or numerically.
Quickly shuffle list items and make it random.
Quickly randomly pick one or more items from a list.
Quickly set a new delimiter for items in a list.
Quickly remove items from the beginning or end of a list.
Quickly join all items of a list together.
Quickly extract a part of a list.
Quickly remove all empty items from a list.
Quickly remove whitespace characters around list items.
Quickly create multiple copies of a list.
Quickly rotate list items to the left or right (or up and down).
Coming soon These list tools are on the way
Split a List
Split list items into chunks.
Generate the Powerlist
Create the powerlist of the given list.
Find the Car of a List
Extract the first item from a list.
Find the Cdr of a List
Extract all items except the first of a list.
Apply a Function on a List
Run a JavaScript function on every list item.
Find Non-repeating List Items
Quickly find and print items that don't repeat in a list.
Find Repeating List Items
Quickly find and print items that repeat in a list.
Delete Repeating List Items
Quickly find and remove items that repeat in a list.
Delete Unique List Items
Quickly find and remove items that are unique in a list.
Delete List Separator
Remove the symbol that separates list items.
Extract a Sublist from a List
Given start and stop indexes, extract a sublist from a list.
Shift List Items
Shift list items to the left or right (or up and down).
Mirror a List
Quickly create a mirror copy of a list.
Invert a List
Invert the order of items in a list (last becomes first, etc).
Reduce a List
Run the reduce function on a list.
Convert a List to an Image
Create an image from a list.
Convert a List to Columns
Create multiple columns from a single list.
Convert a List to Rows
Create multiple rows from a single list.
Convert a List to Excel
Create an Excel file from a list.
Convert a List to PDF
Create a PDF file from a list.
Convert a Text List to a LaTeX List
Create a LaTeX list from a regular text list.
Convert a Text List to a HTML List
Create a HTML list from a regular text list.
Convert a Text List to a Markdown List
Create a Markdown list from a regular text list.
Zip Two Lists
Join two lists together item by item.
Merge Two Lists
Append a second list at the end of the first list.
Pop List Items
Remove list items at certain index positions.
Push List Items
Add new items at the end of a list.
Replace List Items
Replace certain items in a list with new items.
Splice a List
Modify a list in-place by adding, replacing, or removing items.
Create the Empty List
Generate a list with no items.
Create a Random List
Generate a list with random items.
Color List Items
Quickly add colors to list items.
Enumerate List Items
Quickly add a counter to each list item.
Visualize a List
Quickly create a graphical representation of a list.
Let Zalgo Destroy a List
Let Zalgo loose on a list and create list-chaos.
Print List Statistics
Analyze a list and print its item statistics.