"Group by filename" thumbnail stacking order?

I typically have RAW, TIFF, and often an in-process file for images I’m actually using/working on. In the thumbnail view and using “group by filename”, digikam usually (but not absolutely always) puts the TIFF on top of the resulting group. I would rather it put the RAW on top.

Other than manually grouping the iterations of each image, is there a way to get digikam to change the stacking order? I’ve been through the docs and searched here, but haven’t found an answer.