From 5afbbc36782484ad6a1e8ce7cf7508f0624d64b3 Mon Sep 17 00:00:00 2001
From: Javier Etxarri <javier.echarri@openbravo.com>
Date: Wed, 17 Mar 2021 10:08:47 +0100
Subject: [PATCH] No idea what is the logic behind ordering by id when getting
 the preference, I think that it only adds unnecessary complexity

---
 src/org/openbravo/erpCommon/businessUtility/Preferences.java | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/org/openbravo/erpCommon/businessUtility/Preferences.java b/src/org/openbravo/erpCommon/businessUtility/Preferences.java
index ad89d0610e..b99a9d661a 100644
--- a/src/org/openbravo/erpCommon/businessUtility/Preferences.java
+++ b/src/org/openbravo/erpCommon/businessUtility/Preferences.java
@@ -473,8 +473,6 @@ public class Preferences {
       parameters.put("property", property);
     }
 
-    hql += " order by p.id";
-
     OBQuery<Preference> qPref = OBDal.getInstance().createQuery(Preference.class, hql);
     qPref.setNamedParameters(parameters);
     if (queryFilters != null && queryFilters.size() > 0) {
-- 
2.27.0

