Order folders by path instead of name to keep subfolder order

This commit is contained in:
Felix Hammerl 2015-06-12 15:09:59 +02:00
parent 9bf8c758ec
commit 39d19df187
1 changed files with 1 additions and 1 deletions

View File

@ -1183,7 +1183,7 @@ Email.prototype._updateFolders = function() {
return 1;
} else {
// non-wellknown folders should be sorted case-insensitive
return a.name.toLowerCase().localeCompare(b.name.toLowerCase());
return a.path.toLowerCase().localeCompare(b.path.toLowerCase());
}
});