1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-28 03:42:16 -05:00

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

View File

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