Skip to content

Commit

Permalink
fix(supagraph): fix sort on int field
Browse files Browse the repository at this point in the history
  • Loading branch information
grezle committed Jul 10, 2023
1 parent db99a62 commit 174b1e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/supagraph/src/graphql/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
)
Expand Down

0 comments on commit 174b1e7

Please sign in to comment.