Use case insensitive sorting for localstorage and cloud projects. Tag #899

dev
Michael Ball 2015-12-21 15:06:36 -08:00
rodzic e27db7d960
commit df54bfb00e
1 zmienionych plików z 3 dodań i 2 usunięć

5
gui.js
Wyświetl plik

@ -5227,7 +5227,7 @@ ProjectDialogMorph.prototype.getLocalProjectList = function () {
}
}
projects.sort(function (x, y) {
return x.name < y.name ? -1 : 1;
return x.name.toLowerCase() < y.name.toLowerCase() ? -1 : 1;
});
return projects;
};
@ -5240,7 +5240,8 @@ ProjectDialogMorph.prototype.installCloudProjectList = function (pl) {
var myself = this;
this.projectList = pl || [];
this.projectList.sort(function (x, y) {
return x.ProjectName < y.ProjectName ? -1 : 1;
return x.ProjectName.toLowerCase() < y.ProjectName.toLowerCase() ?
-1 : 1;
});
this.listField.destroy();