reverse terms in {byName}.Less()... easier to read.

This commit is contained in:
onyx-and-iris 2024-12-26 13:45:10 +00:00
parent f430d4ed7b
commit 169fa86a69

View File

@ -8,7 +8,7 @@ func (b byName) Len() int {
return len(b) return len(b)
} }
func (b byName) Less(i, j int) bool { func (b byName) Less(i, j int) bool {
return b[j].name > b[i].name return b[i].name < b[j].name
} }
func (b byName) Swap(i, j int) { func (b byName) Swap(i, j int) {
b[i], b[j] = b[j], b[i] b[i], b[j] = b[j], b[i]