How to sort starting with the current date with inline Dataview.js

I currently have a Dataview.js query which lists my most recent daily notes in descending order, as follows:

$=dv.markdownList(dv.pages('"02 Daily Notes"').sort(f=>f.file.name,"desc").limit(3).file.link)

The problem is that if I create daily notes for future dates, these show up first. I want to find a way to skip these, begin the list with the current date, and continue listing the most recent prior dates.

I’ve searched the documentation but so far haven’t found any command to do this. Suggestions?

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