Closed copybara-service[bot] closed 1 year ago
Update parser.ByFieldOrder to make it clear that it is transitive and stable.
parser.ByFieldOrder
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:
Update
parser.ByFieldOrder
to make it clear that it is transitive and stable.https://pkg.go.dev/sort#Interface says: