thought I was a bit higher than a beginner user and the last couple of days has humbled me. Just want to sort my query results of filenames in an ascending order in a dataviewjs. Note that I am working with files other than MD so dataview does not work
What I’m trying to do
the query (below) works perfectly BUT the results don’t come out in ascending order. My filenames start with numbers and then alpha, e.g. 0006 language, 0008 authors, 009 checklist etc
Have worked through a few examples on this forum … using .sort(p => p.file.name, “desc”) in various places in query but never works
got a feeling i’m missing (or have forgotten) something tiny like a dot or a placement … would really appreciate support if anyone is awake on this sunday morning
I’m no expert on this, but I’ve cobbled together some working scripts with much help from others on this forum. Here’s an example of how I grab a bunch of files and then sort them:
I have this very simple Habit Tracker, but it is not sorting the entries in the table by date. Any clues?
TABLE WITHOUT ID
file.link as Date,
yoga as 🧘♀️,
swimming as 🏊,
art as 🎨,
gratitude as 💗,
meditation as 🧠,
journalling as 📝,
sleep as 💤,
mood as mood,
HRV as 📈
FROM "Journals"
SORT file.date ASC