修复Store4UserList.Less的bug
This commit is contained in:
@@ -92,8 +92,8 @@ func (x Store4UserList) Len() int {
|
||||
}
|
||||
|
||||
func (x Store4UserList) Less(i, j int) bool {
|
||||
if x[i].WalkDistance != x[j].Distance {
|
||||
return x[i].WalkDistance < x[j].Distance
|
||||
if x[i].WalkDistance != x[j].WalkDistance {
|
||||
return x[i].WalkDistance < x[j].WalkDistance
|
||||
}
|
||||
return x[i].Distance < x[j].Distance
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user