I have a somewhat different case involving to sort for more than one key. My articles are about biblical passages, so each is attached to a biblical reference. I store it in four custom fields (book, chapter, initial_verse, final_verse). I want to sort the loop by chapter, then by initial_verse, then by final_verse. The output must be like
Matthew 1:1-18
Matthew 1:19-25
Matthew 3:14-16
Matthew 3:17-21
Etc. Chapter, initial_verse and final_verse, in just one loop instruction. I wonder what is the better way to accomplish this.
https://biblicomentarios.com