Blame SOURCES/0002-apps-menu-Respect-user-s-favorite-apps-order.patch

47f2c7
From 4446263190a6260903aa93ffe7e698df6346f4a9 Mon Sep 17 00:00:00 2001
47f2c7
From: Jiro Matsuzawa <jmatsuzawa@gnome.org>
47f2c7
Date: Tue, 27 Aug 2013 10:13:40 +0900
47f2c7
Subject: [PATCH 2/2] apps-menu: Respect user's favorite apps order
47f2c7
47f2c7
https://bugzilla.gnome.org/show_bug.cgi?id=704248
47f2c7
---
47f2c7
 extensions/apps-menu/extension.js | 6 +++---
47f2c7
 1 file changed, 3 insertions(+), 3 deletions(-)
47f2c7
47f2c7
diff --git a/extensions/apps-menu/extension.js b/extensions/apps-menu/extension.js
47f2c7
index a822d44..cef443d 100644
47f2c7
--- a/extensions/apps-menu/extension.js
47f2c7
+++ b/extensions/apps-menu/extension.js
47f2c7
@@ -540,6 +540,9 @@ const ApplicationsButton = new Lang.Class({
47f2c7
 
47f2c7
         if (category_menu_id) {
47f2c7
             applist = this.applicationsByCategory[category_menu_id];
47f2c7
+            applist.sort(function(a,b) {
47f2c7
+                return a.get_name().toLowerCase() > b.get_name().toLowerCase();
47f2c7
+            });
47f2c7
         } else {
47f2c7
             applist = new Array();
47f2c7
             let favorites = global.settings.get_strv('favorite-apps');
47f2c7
@@ -550,9 +553,6 @@ const ApplicationsButton = new Lang.Class({
47f2c7
             }
47f2c7
         }
47f2c7
 
47f2c7
-        applist.sort(function(a,b) {
47f2c7
-            return a.get_name().toLowerCase() > b.get_name().toLowerCase();
47f2c7
-        });
47f2c7
         return applist;
47f2c7
     },
47f2c7
 
47f2c7
-- 
47f2c7
1.8.3.1
47f2c7