You can make your queries less complex by explicitly selecting ‘image’ instead of ‘files’ if you really only want to select images. Please try this code in your setup:
This produced the same result, and didn’t use the sort number. In both cases, if I understand correctly, the first image alphanumerically will be used. I can force this renaming a given image in the files—not quite what I was looking for.
But I’m happy with it as is. If I want to force which image will show in the panel, I can enter a template(‘cover’) image. Still interested if there is a way to query by “sort”.