feat(relativePagePaths): Sort pages alphabetically
This commit is contained in:
parent
9e8658caea
commit
6c5247b879
|
@ -135,11 +135,11 @@ export function relativePagePaths(wikiEntries: PageLinkData[], currentPath: stri
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
siblingPages: Array.from(siblingPages.values()),
|
siblingPages: Array.from(siblingPages.values()).sort(),
|
||||||
childPages: Array.from(childPages.values()),
|
childPages: Array.from(childPages.values()).sort(),
|
||||||
|
|
||||||
siblingDirectories,
|
siblingDirectories: siblingDirectories.sort(),
|
||||||
childDirectories,
|
childDirectories: childDirectories.sort(),
|
||||||
|
|
||||||
currentPage,
|
currentPage,
|
||||||
parentDirectory,
|
parentDirectory,
|
||||||
|
|
Loading…
Reference in a new issue