N
Nuxt5mo ago
Alex

Nuxt/Content Sort by boolean

Hey quick question, does anyone know if you can sort by a boolean value in the query builder .sort() method? What I mean is I have a boolean value in my .json files "myval" and it either equals true or false and I want the ones that are true to be fetched first and I tried doing .sort({ myval: -1}) but that doesnt work so I was wondering if I was missing something and if someone could point me in the right direction.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server