I need to have index that will be sorted by book of the Bible in the order that the books appear in the Bible (Genesis, Exodus, etc.).
Is there any way to define a custom sorting of a register in conTeXt?
Update to an example and more explanation
So here is a minimal example and further explanation:
\defineregister[regname] \setupregister[regname] [compress=no, indicator=no, pagestyle=\tf, n=1, before=\blank, ] \starttext This is a test.\regname{Psalm+81} This is another sentene.\regname{Psalm+81+4} One more.\regname{Matthew+4+5} Yet again.\regname{Matthew+4+5-10} Last one.\regname{Matthew+4+1-7} \page Another page.\regname{Romans+3} Another sentence \regname{Genesis+12+5} Last one.\regname{Exodus+3+12} Nope. One more.\regname{Jude+1} \page \placeregname \stoptext I would like to define a custom sorting that would allow them in the non-alphabetical order. In this example, the ordering would be:
Genesis, Exodus, Psalm, Matthew, Romans, and Jude
Update to clarify question
So it seems that the register is processed on an early run engine and saved in some sort of data structure in the .tucfile. Would the best way then be to write some sort of script that uses that data to sort and then output my index? If so, are there any known examples of such, e.g. accessing the register data and manipulating it for a specific output?
Otherwise, it appears that I will have to "monkey" with the languages, and this really isn't a separate language as much as a different type of data structure with it's own sorting.
sort-lan.luamay be important for me.