Skip to content

Commit

Permalink
fix string compare
Browse files Browse the repository at this point in the history
  • Loading branch information
zeapo committed Mar 27, 2020
1 parent b04bf60 commit d8b7410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/models/Schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ export class SchemaModel {

if (indexLeft < 0 && indexRight < 0) {
// out of mapping, order by name
return left.name - right.name;
return left.name.localCompare(right.name);
} else if (indexLeft < 0) {
// the right is found, so mapping wins
return 1;
Expand Down

0 comments on commit d8b7410

Please sign in to comment.