Author: erwan
Date: Fri Jun 17 10:06:50 2011
New Revision: 1136833
URL:
http://svn.apache.org/viewvc?rev=1136833&view=revLog:
when sorting on more than 1 criteria, only the last one was used
Modified:
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/OrderByList.java
Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/OrderByList.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/OrderByList.java?rev=1136833&r1=1136832&r2=1136833&view=diff==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/OrderByList.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/OrderByList.java Fri Jun 17 10:06:50 2011
@@ -98,6 +98,7 @@ public class OrderByList implements Comp
int result = 0;
for (OrderByItem orderByItem: orderByList) {
result = orderByItem.compare(entity1, entity2);
+ if (result != 0) break;
}
return result;
}