aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-10-27 12:26:27 +0200
committerJoas Schilling <coding@schilljs.com>2016-11-07 14:56:31 +0100
commit52b4606d08281da06f2f7d37ca4da009c94f7793 (patch)
tree9fdf41e0a0051042c84039a999c367b399c12d0b /apps
parentdc5c7d2b0420dadbee31d2f2f42bdeb46d92f6a1 (diff)
downloadnextcloud-server-52b4606d08281da06f2f7d37ca4da009c94f7793.tar.gz
nextcloud-server-52b4606d08281da06f2f7d37ca4da009c94f7793.zip
Sort tags by name on the admin page
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/systemtags/js/admin.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/systemtags/js/admin.js b/apps/systemtags/js/admin.js
index ed21f82f3ba..1388d5b2d7c 100644
--- a/apps/systemtags/js/admin.js
+++ b/apps/systemtags/js/admin.js
@@ -153,6 +153,12 @@
},
escapeMarkup: function(m) {
return m;
+ },
+ sortResults: function(results) {
+ results.sort(function(a, b) {
+ return OC.Util.naturalSortCompare(a.get('name'), b.get('name'));
+ });
+ return results;
}
}
};