Преглед изворни кода

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

Johan Ahlen пре 9 година
родитељ
комит
3f6f974801
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      desktop/core/src/desktop/static/desktop/js/assist/assistDbEntry.js

+ 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);
       });