We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab904e9 commit f875d37Copy full SHA for f875d37
Coordinate.java
@@ -22,9 +22,9 @@ public double getDistanceToOriginPoint() {
22
23
public int compareTo(Coordinate c) {
24
if (getDistanceToOriginPoint() < c.getDistanceToOriginPoint()) {
25
- return 1;
26
- } else if (getDistanceToOriginPoint() > c.getDistanceToOriginPoint()) {
27
return -1;
+ } else if (getDistanceToOriginPoint() > c.getDistanceToOriginPoint()) {
+ return 1;
28
} else {
29
return 0;
30
}
0 commit comments