From 4a78a7accb9928a11bc2e0789f720c86a25f8b95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Dere=C5=BEi=C4=87?= Date: Fri, 5 Jan 2024 16:31:09 +0100 Subject: [PATCH] fixed sorting order --- app/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/page.tsx b/app/page.tsx index 48523cb..ec72ae1 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -17,7 +17,7 @@ export const Page = async () => { const locations = await db.collection("lokacije") .find({}) - .sort({ yearMonth: -1 }) // sort by yearMonth descending + .sort({ yearMonth: -1, name: 1 }) // sort by yearMonth descending .limit(20) .toArray();