diff --git a/src/org/openbravo/retail/posterminal/master/CategoryTree.java b/src/org/openbravo/retail/posterminal/master/CategoryTree.java
--- a/src/org/openbravo/retail/posterminal/master/CategoryTree.java
+++ b/src/org/openbravo/retail/posterminal/master/CategoryTree.java
@@ -103,8 +103,7 @@
               + regularProductsCategoriesTreeHQLProperties.getHqlSelect() //
               + "from ADTreeNode tn, OBRETCO_Productcategory pc "
               + "where tn.$incrementalUpdateCriteria and tn.$naturalOrgCriteria and tn.$readableSimpleClientCriteria "
-              + " and tn.node = pc.productCategory.id and tn.tree.table.id = :productCategoryTableId  "
-              + " order by tn.sequenceNumber");
+              + " and tn.node = pc.productCategory.id and tn.tree.table.id = :productCategoryTableId  ");
       hqlQueries
           .add("select"
               + regularProductsCategoriesTreeHQLProperties.getHqlSelect() //
@@ -112,16 +111,14 @@
               + "where tn.$incrementalUpdateCriteria and tn.$naturalOrgCriteria and tn.$readableSimpleClientCriteria "
               + " and tn.node = pc.id and tn.tree.table.id = :productCategoryTableId "
               + " and pc.summaryLevel = 'Y'"
-              + " and not exists (select obpc.id from OBRETCO_Productcategory obpc where tn.node = obpc.productCategory.id)"
-              + " order by tn.sequenceNumber");
+              + " and not exists (select obpc.id from OBRETCO_Productcategory obpc where tn.node = obpc.productCategory.id)");
     } else {
       hqlQueries
           .add("select"
               + regularProductsCategoriesTreeHQLProperties.getHqlSelect() //
               + "from ADTreeNode tn, ProductCategory pc "
               + "where tn.$incrementalUpdateCriteria and tn.$naturalOrgCriteria and tn.$readableSimpleClientCriteria "
-              + " and tn.node = pc.id and tn.tree.table.id = :productCategoryTableId "
-              + "order by tn.sequenceNumber");
+              + " and tn.node = pc.id and tn.tree.table.id = :productCategoryTableId ");
     }
 
     String whereClause = "p.client.id = '"
