Closed copybara-service[bot] closed 1 year ago
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.
Less must describe a transitive ordering:
In order to follow the requirements of Less, we need to individually sort each subslice.
Less
Sort all children and also sort adjacent children with the same name.
https://pkg.go.dev/sort#Interface says:
In order to follow the requirements of
Less
, we need to individually sort each subslice.