Browse Source

HUE-3481 [assist] Don't sort the columns by name, instead use the creation order

Johan Ahlen 9 years ago
parent
commit
3f6f974

+ 3 - 0
desktop/core/src/desktop/static/desktop/js/assist/assistDbEntry.js

@@ -247,6 +247,9 @@
       }
 
       newEntries.sort(function (a, b) {
+        if (a.definition.isColumn && b.definition.isColumn) {
+          return 0;
+        }
         return a.definition.name.localeCompare(b.definition.name);
       });