From e1464414c73b8d56217f9fc045ade27fdb260a63 Mon Sep 17 00:00:00 2001 From: Ian Roberts Date: Tue, 10 Jan 2023 16:44:08 -0700 Subject: [PATCH] fix(api getTopLevelPageNames): Adds sort to getTopLevelPageNames for correct navigation order --- lib/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api.ts b/lib/api.ts index 31dfa56..5265f69 100644 --- a/lib/api.ts +++ b/lib/api.ts @@ -577,7 +577,7 @@ export async function getTopLevelPageNames() { const data = await fetchAPI( ` query TopLevelPages { - topLevelPages { + topLevelPages(sort: "id:asc") { data { attributes { name