[NTG-context] (again) bug in index sorting?

Alan BRASLAU alan.braslau at cea.fr
Mon Nov 3 14:50:54 CET 2014


On Mon, 3 Nov 2014 13:22:28 +0100
Robert Blackstone <blackstone.robert at gmail.com> wrote:

> 
> On 3 Nov 2014, at 10:01 , Alan BRASLAU <alan.braslau at cea.fr> wrote
> > 
> > On Sun, 2 Nov 2014 12:45:25 +0100
> > Robert Blackstone <blackstone.robert at gmail.com> wrote:
> > 
> >> 
> >> On 2 Nov 2014, at 12:00 ,  Pablo Rodriguez <oinos at gmx.es> wrote
> >>> 
> >>> I
> > Alphabetize letter by letter. When alphabetizing surnames, remember
> > that “nothing precedes something”: Brown, J. R., precedes Browning,
> > A. R., even though i precedes j in the alphabet.
> > 
> > Singh, Y., precedes Singh Siddhu, N. 
> > López, M. E., precedes López de Molina, G.
> > Ibn Abdulaziz, T., precedes Ibn Nidal, A. K. M.
> > Girard, J.-B., precedes Girard-Perregaux, A. S.
> > Villafuerte, S. A., precedes Villa-Lobos, J.
> > Benjamin, A. S., precedes ben Yaakov, D.
> 
> Hi Alan, 
> This still puzzles me a bit. 
> You write: “Brown, J. R., precedes Browning, A.R., even though i
> precedes j in the alphabet.” But isn’t that because “," precedes “i" ?
> Likewise, when sorting these names (with TeX-Edit Plus), Singh
> Siddhu, N. comes out  before Singh, Y., not the reverse, precisely
> because, as you say, “nothing precedes something”, or the space
> between Singh and Siddhu precedes  the comma between Singh and Y.
> Same with López de Molina, G. and López, M. E.
> 
> Or does ConTeXt, or TeX, have its own sorting order?

Please do not forget the \startquotation\stopquotation.

I am citing the APA rules, not stating anything on how ConTeXt (or
TeX-Edit or anything else) sorts lists in general.

Brown precedes Browning because APA sorts on last names.
Singh precedes Singh Siddhu because "nothing precedes
something"( Siddhu)
López precedes López de Molina for precisely the same reason.
Ibn Abdulaziz precedes Ibn Nidal because Ibn is not to be taken into
account.
Laue, M. von precedes Röntgen, W. C, as well as Van der Waals, J. D. but
here things start to get tricky!

My point is that sorting lists of course depends on what you are
listing. Indexing author names, for example, needs to sort on last
names, then first names. Indexing on several levels needs to sort first
by the first level, then by the second level, ...

When indexing items containing several words, the sorting should go
word by word, thus
tipografía digital
before
tipografías

This amounts to making whitespace higher precedence than anything else,
which I believe was not the case but now is fixed.

Alan


More information about the ntg-context mailing list