Skip to content

Commit

Permalink
sort tags for deterministic order
Browse files Browse the repository at this point in the history
  • Loading branch information
juliuxu committed Aug 13, 2023
1 parent f0027cc commit 87f6ba0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const loader = async ({ request }: LoaderArgs) => {
const tags = uniqueBy(
entries.flatMap((entry) => entry.tags),
(tag) => tag.id,
);
).sort((a, b) => a.title.localeCompare(b.title));

return json(
{
Expand Down

0 comments on commit 87f6ba0

Please sign in to comment.