From 6c233da2ff52dd449c4192bf4dc3db19fb135d31 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sun, 15 May 2016 21:46:52 +0100 Subject: [PATCH] [WebUI] Case-insensitive sort for plugins list --- deluge/ui/web/js/deluge-all/preferences/PluginsPage.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/deluge/ui/web/js/deluge-all/preferences/PluginsPage.js b/deluge/ui/web/js/deluge-all/preferences/PluginsPage.js index 73530403b..b91ce4659 100644 --- a/deluge/ui/web/js/deluge-all/preferences/PluginsPage.js +++ b/deluge/ui/web/js/deluge-all/preferences/PluginsPage.js @@ -51,7 +51,7 @@ Deluge.preferences.Plugins = Ext.extend(Ext.Panel, { store: new Ext.data.ArrayStore({ fields: [ {name: 'enabled', mapping: 0}, - {name: 'plugin', mapping: 1} + {name: 'plugin', mapping: 1, sortType: 'asUCString'}, ] }), columns: [{ @@ -147,7 +147,10 @@ Deluge.preferences.Plugins = Ext.extend(Ext.Panel, { updatePlugins: function() { var onGotAvailablePlugins = function(plugins) { - this.availablePlugins = plugins; + this.availablePlugins = plugins.sort(function (a, b) { + return a.toLowerCase().localeCompare(b.toLowerCase()); + }); + deluge.client.core.get_enabled_plugins({ success: onGotEnabledPlugins, scope: this