You can use sort-nested-json to sort an array containing JavaScript Objects or a JSON String (containing an array). Here is an example of using sort-nested-json ...
Just imagine a team where every second pull request comment is about someone forgetting to sort the JSON file correctly.....and just imagine this team not automating this task in five minutes rather ...