kopia lustrzana https://github.com/backface/turtlestitch
Use case insensitive sorting for localstorage and cloud projects. Tag #899
rodzic
e27db7d960
commit
df54bfb00e
5
gui.js
5
gui.js
|
@ -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();
|
||||
|
|
Ładowanie…
Reference in New Issue