From a8ee8f9b04151b0443dd0ff9a1f2ddc6fba0c73c Mon Sep 17 00:00:00 2001 From: jsimomaa Date: Mon, 18 May 2020 13:27:12 +0300 Subject: [PATCH] Fix district finder search result comparison gitlab #86 Change-Id: I1d6431c41d3d9cf300a6af47e1f493b5c4be9af1 (cherry picked from commit 733d6a84564945fefe429c5e2a9b23b62444d520) --- .../src/org/simantics/district/selection/ElementSelector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.simantics.district.selection/src/org/simantics/district/selection/ElementSelector.java b/org.simantics.district.selection/src/org/simantics/district/selection/ElementSelector.java index ff978059..6de06ff6 100644 --- a/org.simantics.district.selection/src/org/simantics/district/selection/ElementSelector.java +++ b/org.simantics.district.selection/src/org/simantics/district/selection/ElementSelector.java @@ -648,7 +648,7 @@ public class ElementSelector { // Select sorting direction Comparator> comparator = smallest ? (p1, p2) -> Double.compare(p1.second, p2.second) : - (p1, p2) -> Double.compare(p1.second, p2.second); + (p1, p2) -> Double.compare(p2.second, p1.second); // Get association list to property values List> result2 = elements.stream() -- 2.47.1