Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dataview sorting over a list uses the value String and not the order in the list. #711

Open
RoyeA opened this issue Aug 2, 2024 · 0 comments

Comments

@RoyeA
Copy link

RoyeA commented Aug 2, 2024

I'm not sure if this is a bug or enhancement, but I've used the listing option to create a metadata entry I called "Priority" with the following list of values: "Highest","High","Medium","Low","Lowest".
This works just fine.
When I try to list all my notes, I want to order them according to this Priority value.
I use the following:

table file.name, file.frontmatter.Priority 
from "ISSUES" and #OPEN 
sort file.frontmatter.Priority asc

When I doing so, the table is not sorted by the Priority order, but it seems it is doing String sorting of the value, meaning, "Low" will be higher in the list than "Medium".

What do you think ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant