fix string compare

This commit is contained in:
zeapo 2020-03-27 12:06:50 +01:00
parent b04bf6036d
commit d8b74100c9

View File

@ -283,7 +283,7 @@ export class SchemaModel {
if (indexLeft < 0 && indexRight < 0) { if (indexLeft < 0 && indexRight < 0) {
// out of mapping, order by name // out of mapping, order by name
return left.name - right.name; return left.name.localCompare(right.name);
} else if (indexLeft < 0) { } else if (indexLeft < 0) {
// the right is found, so mapping wins // the right is found, so mapping wins
return 1; return 1;