3001 - Consistent result ordering when paginating products (#130)

This commit is contained in:
Fredrik Ringqvist
2022-11-16 07:58:16 +01:00
committed by GitHub
parent 72f2e0cb56
commit 4248465031
+1 -1
View File
@@ -90,7 +90,7 @@ export function products(input: ProductsFilterInput) {
AND products.browsable = ${filter?.browsable ? '1' : '0'}`
: ``
}
ORDER BY products.publishing_date DESC
ORDER BY products.publishing_date DESC, products.productid DESC
LIMIT ${limit} OFFSET ${offset}
`
);