mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-05 11:53:53 +00:00
fixed sorting of official results: newest go first
This commit is contained in:
1 parent
ba6a2c7da0
commit
b4bc71d1d6
1 file changed
+2
-2
+2
-2
@@ -434,8 +434,8 @@ public class EditableLeaderboardPanel extends LeaderboardPanel {
|
||||
} else if (lowercaseBoatClassNames.contains(o2.getC().getA().toLowerCase())) {
|
||||
result = 1;
|
||||
} else {
|
||||
// both don't seem to have the right boat class; compare by time stamp
|
||||
result = o1.getC().getB().compareTo(o2.getC().getB());
|
||||
// both don't seem to have the right boat class; compare by time stamp; newest first
|
||||
result = o2.getC().getB().compareTo(o1.getC().getB());
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user