Ordering of RAW+JPG pairs

I wrote a lua script to adjust that for someone else. Let me find it, and I’ll attach it.