SortList
DataTools
Description
Bring order to chaos! SortList sorts lists alphabetically or numerically, in ascending or descending order - with support for various data types and locale-specific sorting. Chaotic data is structured in a flash!
With intelligent type handling, duplicate removal and custom sort criteria, you transform any unordered list into perfectly sorted data. Ideal for name lists, numbers, dates and complex records!
Why This Tool Stands Out
- Lightning-Fast Sorting of thousands of entries
- Alpha & Numeric - automatic detection
- Locale Support - correct umlaut sorting
- Duplicate Removal optional
Perfect for:
Data analysts, content managers, developers and everyone who needs to organize lists. Ideal for name directories, product lists, number series, database sorting and reporting. Perfect for CRM systems, address lists, inventory management and data cleanup!
Workflow support; time savings depend on the task
Instead of sorting lists manually, removing duplicates and adjusting formatting, SortList does everything automatically - with correct locale handling and type detection!
JSON Parameters
- list REQUIRED (Array)The array/list to sort. Can contain strings, numbers or objects.
- sortBy OPTIONAL (String)For objects: the key to sort by. Default: null (direct comparison)
- ascending OPTIONAL (Boolean)Sort direction: true = ascending (A-Z, 0-9), false = descending. Default: true
- removeDuplicates OPTIONAL (Boolean)Whether duplicates should be removed. Default: false
- locale OPTIONAL (String)The locale for sorting. Default: "de-DE". Examples: "en-US", "fr-FR"
Example Call
{
"tool": "SortList",
"params": {
"list": ["Müller", "Schmidt", "Schneider", "Fischer", "Meyer"],
"ascending": true,
"removeDuplicates": false,
"locale": "de-DE"
}
}
Example Usage
Load the list to sort - names, numbers or complex objects.
Define the sort direction, locale and whether duplicates should be removed.
Use the sorted list for reports, databases or displays.
Return Values
The tool returns an object with the following properties:
- sortedList (Array)
The sorted list - itemCount (Integer)
Number of elements in the sorted list - duplicatesRemoved (Integer)
Number of duplicates removed (if enabled) - sortType (String)
Detected sort type: "alphabetic", "numeric" or "mixed" - success (Boolean)
True if the sort was successful - error (String, optional)
Error message if the sort failed
Related DataTools
Ready for More DataTools?
Discover all our data processing tools for efficient data management.
Explore All DataTools