diff --git a/bun.lockb b/bun.lockb index 4a0270d..38aa8b0 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/sitio/src/routes/ean/[ean]/+page.server.ts b/sitio/src/routes/ean/[ean]/+page.server.ts index 5eb887a..32d0688 100644 --- a/sitio/src/routes/ean/[ean]/+page.server.ts +++ b/sitio/src/routes/ean/[ean]/+page.server.ts @@ -10,7 +10,8 @@ export const load: PageServerLoad = async ({ params }) => { .from(precios) .where(eq(precios.ean, params.ean)) .groupBy(precios.warcRecordId) - .having(max(precios.parserVersion)); + .having(max(precios.parserVersion)) + .orderBy(precios.fetchedAt); const res = await q; if (res.length === 0) return error(404, "Not Found");