Fixed generator map sorting

This commit is contained in:
Sasha Koshka 2024-02-19 21:57:21 -05:00
parent a22b6137d5
commit 7600bc28d9
1 changed files with 1 additions and 6 deletions

View File

@ -124,12 +124,7 @@ func (keys keySlice) Less (lefti, righti int) bool {
left := keys[lefti]
right := keys[righti]
for index, leftByte := range left.Unit {
if right.Unit[index] <= leftByte {
return false
}
}
return left.Name < right.Name && left.Method < right.Method
return left.String() < right.String()
}
func (keys keySlice) Swap (lefti, righti int) {