Sort tasks by file property create date - possible how or not?

hi all

I’ve done a lot of searching but as best I can tell the tasks query only searches by dates that I add to the task line and most of mine are just
dash open square bracket space close square bracket short desc of task.

What I’m trying to do

I would like to list all the tasks i created this year and exclude last years. Marking all the tasks I didn’t complete last year one by one complete or cancelled would be a pain.
I do have them mostly in separate folders eg folder 2025 classes and folder 2024 classes so can I use that?

I thought I could use a file property like create date or modified date but I can’t find a list of file properties or whether they could be used in a tasks list.

The tasks function of gathering all the not done ones is great but not if I cant limit the date range.

I don’t use the task window to create tasks and I have turned on the auto set create date but I don’t think that works if I am typing in the task checkbox characters myself.

I’m very keyboard orientated and don’t like mousing to the plug ins or command pallet etc. But still enough of a beginner that I don’t know what all the keyboard short cuts are or what ones I want for task creation.

Things I have tried

Tried searching for sort tasks by create date
sort tasks by file property
got nothing useful

Not sure if I can paste in some example code blocks in here.
tasks not done
works but fails as soon as I try anything like
tasks
sort by function task.file.mdate

Not sure if it should be mdate or modifieddate or what - i can’t find the list of those things either.
Don’t know how to
Filter by folder or path either.
I’ve got path names like
/2025 Classes
/2024 Classes
would be happy if I could exclude 2024 Classes

can it be done or not given the state of most of my task lines?

Thanks in advance.

I have managed to exclude all the template do items from my daily and weekly file/note templates And I’ve managed to exclude gathering all the tasks in a specific folder (or I could include them). Still don’t have sorting but getting there.
My template folder is set to “z templates” and I have a folder for all my 2024 work called “2024 Classes”
So this works.

have to put three ticks (above the tab button on my keyboard) at the top and bottom of this - not sure how to get it to display propery without “executing”.

I would also like to find a semantic and code example for each in a list of words that make something happen in a task code block like include / does not include. The documentation is a bit confusing, I find it hard to tell where the chat changes to code.
Task filters


tasks
not done
folder does not include “z templates”
path does not include “2024 Classes”