[PATCH 1 of 2] It comes already ordered from the database

Wald Commits scm-commit at wald.intevation.org
Tue Dec 8 19:48:36 CET 2015


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1449596681 -3600
# Node ID d55cbb45c565e813160fe2c628d896a0c539129f
# Parent  6714e07e18c29b9c94e07e749a63e06069bad9e0
It comes already ordered from the database.

diff -r 6714e07e18c2 -r d55cbb45c565 artifacts/src/main/java/org/dive4elements/river/artifacts/states/minfo/BedQualityDistanceSelect.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/states/minfo/BedQualityDistanceSelect.java	Tue Dec 08 18:10:18 2015 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/states/minfo/BedQualityDistanceSelect.java	Tue Dec 08 18:44:41 2015 +0100
@@ -10,7 +10,6 @@
 
 import java.util.Date;
 import java.util.List;
-import java.util.Collections;
 
 import org.w3c.dom.Element;
 
@@ -79,9 +78,6 @@
             return ele;
         }
 
-        Collections.sort(blKms);
-        Collections.sort(bKms);
-
         double start = Math.min(bKms.get(0), blKms.get(0));
         double end = Math.max(
             bKms.get(bKms.size()-1), blKms.get(blKms.size()-1));


More information about the Dive4Elements-commits mailing list