JSON Array Sort
Paste a JSON array and specify a key to sort by. Get the sorted array. Supports ascending/descending.
JSON Array Sort
How it works
We parse the array and use sort() with a comparator on the chosen key. Numbers and strings compared correctly.
When to use it
Use to reorder API response arrays or log data.
Frequently asked questions
Nested key?
Some tools support dot path for sort key.
Stable sort?
JavaScript sort is stable in modern engines.