[SSE] Spellcheck: sort languages
This commit is contained in:
parent
fb889e1de9
commit
3286d33058
|
@ -130,10 +130,16 @@ define([
|
|||
info = allLangs[parseInt(code)];
|
||||
langs.push({
|
||||
displayValue: info[1],
|
||||
shortName: info[0],
|
||||
value: parseInt(code)
|
||||
});
|
||||
}
|
||||
});
|
||||
langs.sort(function(a, b){
|
||||
if (a.shortName < b.shortName) return -1;
|
||||
if (a.shortName > b.shortName) return 1;
|
||||
return 0;
|
||||
});
|
||||
combo.setData(langs);
|
||||
if (value) {
|
||||
var item = combo.store.findWhere({value: value});
|
||||
|
|
Loading…
Reference in a new issue