This commit is contained in:
Julian Lam
2014-01-13 09:50:29 -05:00
parent dea43ee008
commit e36f92b18e
2 changed files with 5 additions and 5 deletions

View File

@@ -32,14 +32,14 @@ Languages.list = function(callback) {
}
});
}, function(err) {
// Float "en" to the top
// Float "en" to the top, otherwise sort alphabetically
languages = languages.sort(function(a, b) {
if (a.code === 'en') {
return -1;
} else if (b.code === 'en') {
return 1;
} else {
return 0;
return a.code > b.code;
}
});