Here’s a short tutorial on custom sorting in lighttable, which is something I didn’t even know darktable had until today!