I have a hidden Repeating Group with the list of Files (Files1_Master). I then have a visible Repeating Group that shows the content from the hidden, and sorts them using using “file name:sorted”.
The links in the visible Repeating Group the opens the correct file by using: