From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29780 Path: news.gmane.org!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: Re: sorting commalist? Date: Fri, 28 Jul 2006 08:08:37 +0200 Message-ID: <726114E3-7AF8-49AF-85FF-0A38E31781D8@science.uva.nl> References: <141B4ACB-F159-44BB-9275-B5F07EF46B09@science.uva.nl> <44C48251.8090204@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1154117468 24584 80.91.229.2 (28 Jul 2006 20:11:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 28 Jul 2006 20:11:08 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 28 22:11:04 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1G6YfV-0002KL-9y for gctc-ntg-context-518@m.gmane.org; Fri, 28 Jul 2006 22:10:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E10A21FE87; Fri, 28 Jul 2006 22:10:44 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13522-03-9; Fri, 28 Jul 2006 22:10:40 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EFBBE1FE82; Fri, 28 Jul 2006 22:10:39 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8C8641FE87 for ; Fri, 28 Jul 2006 22:10:37 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14380-01-5 for ; Fri, 28 Jul 2006 22:10:34 +0200 (CEST) Original-Received: from smtp.science.uva.nl (smtp.science.uva.nl [146.50.4.84]) by ronja.ntg.nl (Postfix) with SMTP id 510DC1FE82 for ; Fri, 28 Jul 2006 22:10:34 +0200 (CEST) Original-Received: from 119-79.uva.surfnetthuis.nl [145.98.119.79] by smtp.science.uva.nl with ESMTP (sendmail 8.11.6p2/config 11.36). id k6SKAR928266; Fri, 28 Jul 2006 22:10:27 +0200 X-Organisation: Faculty of Science, University of Amsterdam, The Netherlands X-URL: http://www.science.uva.nl/ In-Reply-To: <44C48251.8090204@elvenkind.com> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: by amavisd-new X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:29780 Archived-At: 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