-
I have a complex query where I have a user can select a particular dataview field to sort by + ascending/descending order.
But the user can't choose the implicit fields (file.ctime, file.mtime, file.name). I want to create a condition that selects either a dataview field (author, title), or an implicit field, if the user chooses "note-created" for example, something like:
I tried to stick the above into the .sort line, and tried to create an analogous function and stick the function into the .sort. Neither works. If anyone could help me, I would greatly appreciate it. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Ok, got my question answered on Discord with really nice code:
|
Beta Was this translation helpful? Give feedback.
Ok, got my question answered on Discord with really nice code: