修复Store4UserList.Less的bug

This commit is contained in:
gazebo
2019-10-23 14:27:46 +08:00
parent da6601322f
commit 15ebf045d6

View File

@@ -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
}