diff --git a/packages/supagraph/src/graphql/queries.ts b/packages/supagraph/src/graphql/queries.ts index 9e7ffe0f..d0dac81a 100644 --- a/packages/supagraph/src/graphql/queries.ts +++ b/packages/supagraph/src/graphql/queries.ts @@ -234,8 +234,8 @@ export const createMultiQuery = ( orderBy ? parseFloat( direction + - ((a[orderBy as string] as string) || "").localeCompare( - (b[orderBy as string] as string) || "", + String((a[orderBy as string] as string) || "").localeCompare( + String((b[orderBy as string] as string) || ""), undefined, { numeric: true } )