If you already have Nextcloud, maybe Nextcloud Tasks? It has worked really well for me although it is kind of a pain to get setup on phones.
Unfortunately I don't think is supports custom attributes or any scriptable features that I know of. But the web UI does let you sort manually. But I don't see that option on the phone app. Maybe I am just missing it. So it will get you half way there.