🔤 JSON Sort
Sort JSON object keys alphabetically — or apply a preset (package.json, tsconfig.json, composer.json) — recursively, instantly in your browser.
Sort JSON object keys alphabetically — or apply a preset (package.json, tsconfig.json, composer.json) — recursively, instantly in your browser.
Sort every key in a JSON object alphabetically — A→Z or Z→A — recursively through nested objects. Or pick a preset for a known file shape (package.json, tsconfig.json, composer.json) to apply the canonical field order developers expect for that file. Useful for canonicalizing config files, producing line-stable diffs, or comparing objects whose keys arrived in a different order.
:-namespace grouping with pre/post kept next to their main, alpha-sorted dependency blocks, and exports with default last.$schema, extends, compilerOptions, include, exclude, files, references in canonical order.name, require, require-dev, autoload, …) with require-like maps alpha-sorted.