JSON Array Sorter
Sort an array of objects by a top-level field.
When to use JSON Array Sorter
Order a fixture by a field such as score, verifying how missing or mixed-type values are handled.
How to use JSON Array Sorter
- Enter valid JSON objects, choose Field name, Order and Compare as, then inspect the complete reordered array.
- Enter Field name.
- Choose Order: Ascending, Descending.
- Choose Compare as: Number, Text.
- Select Run tool.
- Check the output: The array sorted by the selected field and comparison mode. Copy only the result you intend to use.
A practical example
Input:
[{"name":"Zoe","score":3},{"name":"Ana","score":1}]
Example output:
[
{
"name": "Ana",
"score": 1
},
{
"name": "Zoe",
"score": 3
}
]Limitations and common mistakes
Use a top-level field present in your array objects. Check mixed or missing values and large numeric identifiers before relying on order.
Questions about JSON Array Sorter
What should I enter in JSON Array Sorter?
A JSON array of objects and a field name to compare.
What does JSON Array Sorter return?
The array sorted by the selected field and comparison mode.
What should I check before using the result?
Use a top-level field present in your array objects. Check mixed or missing values and large numeric identifiers before relying on order.
Supported input and output
A JSON array of objects and a field name to compare.
The array sorted by the selected field and comparison mode.
