Welcome to the community @Mario95!
It seems like I spoke without thinking, sorry. I thought to be clever by suggesting a query that sorts blocks from A to whatever. But the thing is, the sort-by
filter only works on pages!
However, in Logseq DB (currently in alpha at https://test.logseq.com) you will be able to add more priorities, create your own task statuses, and filter/sort them any way you like. I don’t know when a local build will be available, but I hope it will be within the next couple of months.