Bug 955619 - Remove unnecessary sorting of tag list, r=Mic.
authoraleth <aleth@instantbird.org>
Wed, 16 Oct 2013 01:04:19 +0200
changeset 17304 44b666cb6f7f996fcbb7763894572bd02258557d
parent 17303 9d31b9ef77cbdf651e2ce8fde78e58c0a3994039
child 17305 82523776afa50f1f78381641a64c70a22956e7c9
push id1151
push userbugzilla@standard8.plus.com
push dateMon, 03 Feb 2014 22:50:32 +0000
treeherdercomm-aurora@267d8e9143d5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMic
bugs955619
Bug 955619 - Remove unnecessary sorting of tag list, r=Mic.
im/content/blist.js
--- a/im/content/blist.js
+++ b/im/content/blist.js
@@ -183,22 +183,17 @@ buddyListContextMenu.prototype = {
     if (this.onBuddy || this.onContact || this.onConv)
       return;
 
     let popup = document.getElementById("context-visible-tags-popup");
     let item;
     while ((item = popup.firstChild) && item.localName != "menuseparator")
       popup.removeChild(item);
 
-    let sortFunction = function (a, b) {
-      [a, b] = [a.name.toLowerCase(), b.name.toLowerCase()];
-      return a < b ? 1 : a > b ? -1 : 0;
-    };
     Services.tags.getTags()
-            .sort(sortFunction)
             .forEach(function (aTag) {
       item = document.createElement("menuitem");
       item.setAttribute("label", aTag.name);
       item.setAttribute("type", "checkbox");
       let id = aTag.id;
       item.groupId = id;
       if (!Services.tags.isTagHidden(aTag))
         item.setAttribute("checked", "true");