mirror of
https://github.com/onyx-and-iris/aoc2024.git
synced 2025-01-09 22:30:47 +00:00
reverse terms in {byName}.Less()... easier to read.
This commit is contained in:
parent
f430d4ed7b
commit
169fa86a69
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user