On Jul 24, 2006, at 10:18, Taco Hoekwater wrote:
Hi Hans,
Hans van der Meer wrote:
In the article "Context System macros, part1: general macros" there are all sorts of interesting and useful macros. Among these I have set my eye on the processing of commalists.
I should extend that document, but I've lost the source :-(
Well, losing the source of the first article is not such a problem as finishing the second one, I guess :-)
Question: is there a context macro that takes a commalist (either in a token register or \the\tokenregister form) that returns a sorted commalist (ascending or descending doesnt matter to me for the moment).
There is \sortcommalist (syst-ext.tex), but it only works for lists of numbers, TeX does not know how to sort words. That type of sorting has to be done externally.
Is there a simple manner to sort the list externally and get it back for further processing? Otherwise, how are the indexes sorted? Hans van der Meer