MaiXinRong пре 1 година
родитељ
комит
963edfd574
1 измењених фајлова са 7 додато и 0 уклоњено
  1. 7 0
      app/public/js/gcl_gather.js

+ 7 - 0
app/public/js/gcl_gather.js

@@ -715,6 +715,13 @@ const gclGatherModel = (function () {
                 gatherfields(glx, lx, ancillaryGclGatherFields);
             }
         }
+        gcl.gatherAncGcl.sort((a, b) => {
+            if (a.is_aux === b.is_aux) {
+                return a.name < b.name ? -1 : 1;
+            } else {
+                return a.is_aux - b.is_aux;
+            }
+        });
     }
 
     function reGatherAncillaryGcl(fields) {