-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref(grouping): Sort keys in variant snapshots (#79181)
This sorts the keys when variant snapshots are dumped to JSON. That way, random key reordering won't pollute upcoming changes to snapshots. It happens that right now the keys are already in order in the snapshots, so this doesn't have any immediate effect*, but changes in an upcoming PR were reordering them without this. *The only exception to that is a set of snapshots where a unicode code point is now getting rendered correctly. To get key sorting, I had to switch to using `orjson`, and `orjson` requires encoding of its results, resulting in the snapshot change.
- Loading branch information
1 parent
0fe1a6a
commit 47a2266
Showing
5 changed files
with
19 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters