Sort styles in pop-up by name

This commit is contained in:
Jason Barnabe 2015-02-17 13:05:30 -06:00
parent bd83d65da6
commit 4dca2e8e33

View File

@ -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 = "<div class='entry' id='no-styles'>" + t('noStylesForSite') + "</div>";