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 0376644
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 @@ -291,7 +291,7 @@ export class SchemaModel {
// left wins as it's in mapping
return -1;
} else {
return indexLeft - indexRight;
return indexLeft.localCompare(indexRight);
}
});
}
Expand Down

0 comments on commit 0376644

Please sign in to comment.