[PATCH] Order by year in sediment yield datacage

Wald Commits scm-commit at wald.intevation.org
Fri Dec 6 14:27:07 CET 2013


# HG changeset patch
# User Tom Gottfried <tom.gottfried at intevation.de>
# Date 1386336423 -3600
# Node ID c36aae57ad439e4e19dc6f017763343e91c2dd08
# Parent  6d39b4066c918ea2d3d4ecec267c69d0ef0c1232
Order by year in sediment yield datacage.

diff -r 6d39b4066c91 -r c36aae57ad43 artifacts/doc/conf/meta-data.xml
--- a/artifacts/doc/conf/meta-data.xml	Fri Dec 06 13:58:27 2013 +0100
+++ b/artifacts/doc/conf/meta-data.xml	Fri Dec 06 14:27:03 2013 +0100
@@ -1451,7 +1451,7 @@
             WHERE   r.id = ${river_id}
                 AND ti.stop_time IS NULL
                 AND syv.station BETWEEN ${fromkm} AND ${tokm}
-            ORDER BY fraction
+            ORDER BY fraction, year DESC
         </dc:statement>
         <dc:call-macro name="loads">
           <dc:call-macro name="one-load"/>
@@ -1475,7 +1475,7 @@
             WHERE   r.id = ${river_id}
                 AND ti.stop_time IS NOT NULL
                 AND syv.station BETWEEN ${fromkm} AND ${tokm}
-            ORDER BY fraction
+            ORDER BY fraction, startyear DESC, endyear DESC
         </dc:statement>
         <dc:call-macro name="loads">
           <dc:call-macro name="epoch-load"/>


More information about the Dive4elements-commits mailing list