Need help sorting Daily Notes via Dataview Plugin list

Things I have tried

list 
from #Daily_Note and !"Templates" 
sort "MM-DD-YYYY" desc

and sort by date desc
and sort by month desc

What I’m trying to do

I have Daily Notes and I am trying to sort by month with the top date being the most recent date and sorted from where it was created and not modified. I don’t have metadata in my notes.

So for example:

03-01-2022
02-28-2022
02-27-2022

1 Like

I’ve noticed a bug with this where some days are out of place in the list even when the date format is in a format where it can be sorted as a straight string.
TABLE Without ID
file.link as Date,
sort Date

Results in
2022-02-03
2022-02-01
2022-02-02
2022-02-07
2022-02-04

TABLE
sort file

Results in only 1 date being out of place
2022-02-12
2022-02-01
2022-02-02
2022-02-03
2022-02-04

but it has not been important enough for me file a bug report on github yet.

Is there a way to do this via Obsidian’s query search instead?

Do the sample files attached, with the query in the note called dataview query, work as you need?

Angel

dailynotesdataview.zip (1.6 KB)

This particular example didn’t work but the line “SORT file.name DESC” did work for my vault. Thank you so much.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.