Skip to content

Commit

Permalink
add toString (#1324)
Browse files Browse the repository at this point in the history
* add toString

* Fix indentation

---------

Co-authored-by: Justin Milner <[email protected]>
  • Loading branch information
2 people authored and sestinj committed Jun 23, 2024
1 parent ee92f24 commit 4104b70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/context/providers/DocsContextProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class DocsContextProvider extends BaseContextProvider {
return 1;
} else {
// Secondary criterion: Alphabetical order when both items are in the same category
return a.title.localeCompare(b.title);
return a.title.toString().localeCompare(b.title.toString());
}
});

Expand Down

0 comments on commit 4104b70

Please sign in to comment.