Some of the results that sorted wrongly for you probably had a format different to what you showed here. Can you check that?
Also,
in disguise: in this particular example, it takes the citations, and maps each onto an array reference, containing the book, chapter, verse, and in case of the ST, the citation itself to be retrieved after sorting.