Data Tools

Data Sorter

Sort datasets by multiple fields with custom sort orders and data types

Input data (JSON array)
Sort rules (priority top to bottom)
Sort result
Output will appear here...
Example input
[
  { "id": 3, "name": "Product C", "category": "Electronics", "price": 499.99, "lastUpdated": "2024-02-01" },
  { "id": 1, "name": "Product A", "category": "Books", "price": 19.99, "lastUpdated": "2024-01-15" },
  { "id": 2, "name": "Product B", "category": "Electronics", "price": 299.99, "lastUpdated": "2024-01-20" }
]
Example sort rules
  • Sort by category (ascending, text) then price (descending, number)
  • Sort by lastUpdated (ascending, date)
  • Sort by name (ascending, text)