mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-09 06:34:53 +03:00
fix string compare
This commit is contained in:
parent
b04bf6036d
commit
d8b74100c9
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user