fixed sorting order
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user