fixed sorting order

This commit is contained in:
2024-01-05 16:31:09 +01:00
parent e537be1870
commit 4a78a7accb

View File

@@ -17,7 +17,7 @@ export const Page = async () => {
const locations = await db.collection<BillingLocation>("lokacije")
.find({})
.sort({ yearMonth: -1 }) // sort by yearMonth descending
.sort({ yearMonth: -1, name: 1 }) // sort by yearMonth descending
.limit(20)
.toArray();