fixed sorting order
This commit is contained in:
@@ -17,7 +17,7 @@ export const Page = async () => {
|
|||||||
|
|
||||||
const locations = await db.collection<BillingLocation>("lokacije")
|
const locations = await db.collection<BillingLocation>("lokacije")
|
||||||
.find({})
|
.find({})
|
||||||
.sort({ yearMonth: -1 }) // sort by yearMonth descending
|
.sort({ yearMonth: -1, name: 1 }) // sort by yearMonth descending
|
||||||
.limit(20)
|
.limit(20)
|
||||||
.toArray();
|
.toArray();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user