Sort keys when saving JSON to improve diffs