spatial/kdtree: use conventional ordering for inequality
@@ -73,11 +73,11 @@ func Select(list SortSlicer, k int) int {
}
func min(a, b int) int {
- if a > b {
- return b
- }
+ if a < b {
return a
}
+ return b
+}
// MedianOfMedians returns the index to the median value of the medians
// of groups of 5 consecutive elements.
