From: Taco Hoekwater <taco@elvenkind.com>
Subject: Re: sorting commalist?
Date: Fri, 28 Jul 2006 23:13:18 +0200 [thread overview]
Message-ID: <44CA7DEE.4040401@elvenkind.com> (raw)
In-Reply-To: <726114E3-7AF8-49AF-85FF-0A38E31781D8@science.uva.nl>
Hans van der Meer wrote:
>
> Is there a simple manner to sort the list externally and get it back
> for further processing? Otherwise, how are the indexes sorted?
Externally, using texexec functionality. Something like this
works well enough, I guess (but I normally sort my stuff by
piping it through the unix sort command):
% This sorts the list contained in it's argument
\def\sortalphacommacommand#1%
{\definesorting[listsort][listsorts]%
\processcommacommand[#1]\listsort
\def\sortedcommalist{}%
\def\makesortedlist##1%
{\doglobal\appendtocommalist{##1}\sortedcommalist}%
\setupsorting[listsort][criterium=all,command=\makesortedlist]%
\placelistoflistsorts
\let#1\sortedcommalist}
\def\citylist{Londen,Berlijn,New York,Parijs,Amstelveen}
\sortalphacommacommand\citylist
Cheers, taco
prev parent reply other threads:[~2006-07-28 21:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-23 18:55 Hans van der Meer
2006-07-24 8:18 ` Taco Hoekwater
2006-07-26 14:25 ` Jano Kula
2006-07-26 20:34 ` Taco Hoekwater
2006-07-29 19:43 ` Jano Kula
2006-07-30 7:45 ` Taco Hoekwater
2006-07-28 6:08 ` Hans van der Meer
2006-07-28 21:13 ` Taco Hoekwater [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44CA7DEE.4040401@elvenkind.com \
--to=taco@elvenkind.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).