-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sort all children and also sort adjacent children with the same name.
https://pkg.go.dev/sort#Interface says: > Less must describe a transitive ordering: > - if both Less(i, j) and Less(j, k) are true, then Less(i, k) must be true as well. > - if both Less(i, j) and Less(j, k) are false, then Less(i, k) must be false as well. In order to follow the requirements of `Less`, we need to individually sort each subslice. PiperOrigin-RevId: 561254248
- Loading branch information
1 parent
0c31dbd
commit c3c0a04
Showing
4 changed files
with
82 additions
and
25 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