From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29622 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: sorting commalist? Date: Mon, 24 Jul 2006 10:18:25 +0200 Message-ID: <44C48251.8090204@elvenkind.com> References: <141B4ACB-F159-44BB-9275-B5F07EF46B09@science.uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1153729155 20092 80.91.229.2 (24 Jul 2006 08:19:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 24 Jul 2006 08:19:15 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 24 10:19:11 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 1G4veX-0008AR-BO for gctc-ntg-context-518@m.gmane.org; Mon, 24 Jul 2006 10:19:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 04C42127DB; Mon, 24 Jul 2006 10:19:01 +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 19752-04; Mon, 24 Jul 2006 10:18:56 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9F2CB127CA; Mon, 24 Jul 2006 10:18:55 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5F0D9127CA for ; Mon, 24 Jul 2006 10:18:41 +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 18828-08 for ; Mon, 24 Jul 2006 10:18:34 +0200 (CEST) Original-Received: from lochside.elvenkind.com (elvenknd.xs4all.nl [213.84.171.68]) by ronja.ntg.nl (Postfix) with SMTP id 4A903127BF for ; Mon, 24 Jul 2006 10:18:30 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by lochside.elvenkind.com (Postfix) with ESMTP id 6DEF11BCF0 for ; Mon, 24 Jul 2006 10:18:26 +0200 (CEST) Original-Received: from lochside.elvenkind.com ([127.0.0.1]) by localhost (glenfiddich.elvenkind.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16138-01 for ; Mon, 24 Jul 2006 10:18:26 +0200 (CEST) Original-Received: from [10.10.0.6] (glenlivet.elvenkind.com [10.10.0.6]) by lochside.elvenkind.com (Postfix) with ESMTP id 173BA1B44F for ; Mon, 24 Jul 2006 10:18:26 +0200 (CEST) User-Agent: Mozilla Thunderbird 1.0.6-7.1.20060mdk (X11/20050322) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <141B4ACB-F159-44BB-9275-B5F07EF46B09@science.uva.nl> X-Virus-Scanned: by amavisd-new at elvenkind.net 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:29622 Archived-At: 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 :-( > 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. Cheers, Taco