Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2807)

Unified Diff: chrome/browser/resources/ntp_search/new_tab.js

Issue 11412214: NTP5: Fine tuning of Apps implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/ntp_search/new_tab.js
diff --git a/chrome/browser/resources/ntp_search/new_tab.js b/chrome/browser/resources/ntp_search/new_tab.js
index d4dc34f2fe381902eedefedd99c037ead8a2c259..1d8efa16a872c4b9b9650e3ad03437b2136a736f 100644
--- a/chrome/browser/resources/ntp_search/new_tab.js
+++ b/chrome/browser/resources/ntp_search/new_tab.js
@@ -414,8 +414,8 @@ cr.define('ntp', function() {
// Sort by launch ordinal
apps.sort(function(a, b) {
- return a.app_launch_ordinal > b.app_launch_ordinal ? 1 :
- a.app_launch_ordinal < b.app_launch_ordinal ? -1 : 0;
+ return a.title.toLocaleLowerCase() > b.title.toLocaleLowerCase() ? 1 :
+ a.title.toLocaleLowerCase() < b.title.toLocaleLowerCase() ? -1 : 0;
});
// An app to animate (in case it was just installed).

Powered by Google App Engine
This is Rietveld 408576698