sort json keys to avoid big diffs on every save