JSON Array Sorter
Stably sort JSON objects by a numeric or string property. Keep missing and null values last in either sort direction.
Start with your input
Edit the example or replace it with your own text.
Choose your options
These settings are optional. Keep the defaults to get started.
How to use JSON Array Sorter
- Load the included example or provide your own input and settings.
- Choose the operation and review the supported format below.
- Run the tool, inspect the result, and copy or download it.
Sort records without converting their values
Provide an array of JSON objects and select an exact top-level property name. Numeric mode compares finite numbers rather than their formatted strings, so ten sorts after two. String mode compares JavaScript string order without a language-specific collation. The entire original record travels with its sort key, making the result suitable for inspecting API fixtures, reports and test data.
Make ties and absent keys predictable
Equal sort keys retain their original relative order. Missing properties and explicit null values move to the end in both ascending and descending modes. Other value types must match the chosen mode, preventing an accidental mixture of numbers and numeric-looking strings. Nested property paths and locale-aware alphabetic ordering are not implemented. Inputs are bounded to ten thousand objects and still use ordinary browser JSON number precision.
Example input
[{"name":"Ada","score":90},{"name":"Grace","score":100},{"name":"Linus","score":90}]Does JSON Array Sorter upload my input?
No. This tool processes input locally in your browser without calling a conversion API.
Is input uploaded?
Processing takes place in your browser. This tool does not send your input or selected files to a conversion API.