From 0f68e5cfd8826c7c4c4bd80a520f8e947dd73b16 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