Sorted the output json files.