From 4dca2e8e333b9a79ce4616b69ccf70d3da81fd88 Mon Sep 17 00:00:00 2001 From: Jason Barnabe Date: Tue, 17 Feb 2015 13:05:30 -0600 Subject: [PATCH] Sort styles in pop-up by name --- popup.js | 1 + 1 file changed, 1 insertion(+) diff --git a/popup.js b/popup.js index 3d71e765..dd182e7a 100644 --- a/popup.js +++ b/popup.js @@ -52,6 +52,7 @@ chrome.tabs.getSelected(null, function(tab) { }); function showStyles(styles) { + styles.sort(function(a, b) { return a.name.localeCompare(b.name)}); var installed = document.getElementById("installed"); if (styles.length == 0) { installed.innerHTML = "
" + t('noStylesForSite') + "
";