aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/template/batch_manager_global.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'admin/themes/default/template/batch_manager_global.tpl')
-rw-r--r--admin/themes/default/template/batch_manager_global.tpl6
1 files changed, 1 insertions, 5 deletions
diff --git a/admin/themes/default/template/batch_manager_global.tpl b/admin/themes/default/template/batch_manager_global.tpl
index 4fdad75d3..4a45cab41 100644
--- a/admin/themes/default/template/batch_manager_global.tpl
+++ b/admin/themes/default/template/batch_manager_global.tpl
@@ -134,16 +134,12 @@ jQuery(document).ready(function() {ldelim}
jQuery('[data-selectize=categories]').selectize({
valueField: 'id',
labelField: 'fullname',
- sortField: 'fullname',
+ sortField: 'global_rank',
searchField: ['fullname'],
plugins: ['remove_button']
});
categoriesCache.get(function(categories) {
- categories.sort(function(a, b) {
- return a.fullname.localeCompare(b.fullname);
- });
-
jQuery('[data-selectize=categories]').each(function() {
this.selectize.load(function(callback) {
callback(categories);