diff options
Diffstat (limited to 'src/engine/geometry.rs')
-rw-r--r-- | src/engine/geometry.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/geometry.rs b/src/engine/geometry.rs index 02fe44b..af91b19 100644 --- a/src/engine/geometry.rs +++ b/src/engine/geometry.rs @@ -81,6 +81,6 @@ impl PartialOrd for Point { } impl Ord for Point { fn cmp(&self, other: &Point) -> Ordering { - self.x.cmp(&other.x).then(self.y.cmp(&other.y)) + self.y.cmp(&other.y).then(self.x.cmp(&other.x)) } } |