summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/ntp/apps.js
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/resources/ntp/apps.js')
-rw-r--r--chrome/browser/resources/ntp/apps.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/resources/ntp/apps.js b/chrome/browser/resources/ntp/apps.js
index e6f79a2..da91af7 100644
--- a/chrome/browser/resources/ntp/apps.js
+++ b/chrome/browser/resources/ntp/apps.js
@@ -14,6 +14,10 @@ function getAppsCallback(data) {
appsSectionContent.removeChild(appsSectionContent.lastChild);
}
+ data.apps.sort(function(a,b) {
+ return a.app_launch_index - b.app_launch_index
+ });
+
clearClosedMenu(apps.menu);
if (data.apps.length == 0) {
appsSection.classList.add('disabled');