-
|
and I am using the queryContent, I am finding a way to sort it descending. const blogs = await queryContent("blog").where({ active: 1 }).sort(number).find(); |
Beta Was this translation helpful? Give feedback.
Answered by
JenuelDev
Sep 20, 2022
Replies: 1 comment
-
|
I was able to do it using const blogs = await queryContent("blog")
.where({ active: 1 })
.sort({ _path: -1 })
.find(); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
JenuelDev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

I was able to do it using
_pathor_id, set its value to-1for descending.