diff --git a/docs/src/components/DirectoryLinks.astro b/docs/src/components/DirectoryLinks.astro index 1566aeecb9..7137420f36 100644 --- a/docs/src/components/DirectoryLinks.astro +++ b/docs/src/components/DirectoryLinks.astro @@ -10,6 +10,7 @@ const { directory } = Astro.props const pages = ( await getCollection("docs", (entry) => entry.id.startsWith(directory + "/")) ).filter(({ slug }) => slug !== directory) +.sort((a, b) => (a.data.sidebar.order ?? 0) - (b.data.sidebar.order ?? 0)) ---