mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-08 22:24:54 +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) {
|
||||
// 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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user