spatial/kdtree: use conventional ordering for inequality
MODIFY
spatial/kdtree/medians.go
spatial/kdtree/medians.go
@@ -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.

spatial/kdtree: use conventional ordering for inequality