From d065910ff3250a487155d2f81fd6fec6a33f3ba9 Mon Sep 17 00:00:00 2001 From: pluja Date: Sun, 1 Jun 2025 15:33:44 +0000 Subject: [PATCH] Release 202506011533 --- web/src/pages/index.astro | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/src/pages/index.astro b/web/src/pages/index.astro index e011642..6c8a08f 100644 --- a/web/src/pages/index.astro +++ b/web/src/pages/index.astro @@ -1,6 +1,6 @@ --- import { z } from 'astro:schema' -import { groupBy, omit, orderBy, uniq } from 'lodash-es' +import { groupBy, omit, orderBy, sortBy, uniq } from 'lodash-es' import seedrandom from 'seedrandom' import Button from '../components/Button.astro' @@ -350,7 +350,8 @@ const [categories, [services, totalServices], countCommunityOnly, attributes] = const selectedSort = sortOptions.find((sort) => sort.value === filters.sort) ?? defaultSortOption const sortedServices = orderBy( - unsortedServices, + // NOTE: We do a first sort by id to make the seeded sort deterministic + sortBy(unsortedServices, 'id'), [ ...(filters.q ? (['similarityScore'] as const) : ([] as const)), selectedSort.orderBy.key,