From e5d50b02e73867a6b30ab27a5b6d0db8abfce663 Mon Sep 17 00:00:00 2001 From: Jason Barnabe Date: Fri, 30 Jan 2015 11:32:14 -0600 Subject: [PATCH] Sort styles by name in manage --- manage.js | 1 + 1 file changed, 1 insertion(+) diff --git a/manage.js b/manage.js index 0a5072bf..b448e69b 100644 --- a/manage.js +++ b/manage.js @@ -10,6 +10,7 @@ appliesToExtraTemplate.innerHTML = " " + t('appliesDisplayTruncatedSuffix'); chrome.extension.sendMessage({method: "getStyles"}, showStyles); function showStyles(styles) { + styles.sort(function(a, b) { return a.name.localeCompare(b.name)}); var installed = document.getElementById("installed"); styles.map(createStyleElement).forEach(function(e) { installed.appendChild(e);