From 09437255d575e6bba1bb0df1145da97cf4409a94 Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Mon, 26 Feb 2007 11:55:02 +0000 Subject: [PATCH] BF [ 1665129 ] Bar Graph is not ordered --- base/src/org/compiere/model/MMeasureCalc.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base/src/org/compiere/model/MMeasureCalc.java b/base/src/org/compiere/model/MMeasureCalc.java index 2e6600c41a..efc260ec4d 100644 --- a/base/src/org/compiere/model/MMeasureCalc.java +++ b/base/src/org/compiere/model/MMeasureCalc.java @@ -178,7 +178,8 @@ public class MMeasureCalc extends X_PA_MeasureCalc } // date String sql = addRestrictions(sb.toString(), restrictions, role); if (groupBy != null) - sql += " GROUP BY " + groupBy; + sql += " GROUP BY " + groupBy + + " ORDER BY " + groupBy; // teo_sarca, [ 1665129 ] Bar Graph is not ordered // log.fine(sql); return sql;