lout-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: references in order of appearance (again)


From: Slomium Catfish
Subject: RE: references in order of appearance (again)
Date: Thu, 11 Oct 2001 00:02:46 -0500

> the key. There are two problems with this: first, the labels are sorted as
> strings, so '2' comes after '19' and before '20' etc. and second,
> consecutive reference numbers come out as separate labels, eg. (1, 2, 3,
> 4, 7) instead of (1-4, 7).

> solution from 2N + 1 to five, and by adding 1000 to the numbers
> used for sorting (not printing) so that instead of comparing 10
> to 2 and getting it wrong, Lout compares 1010 with 1002 and gets
> it right.

I hope that I'm not being obvious here, but, to have number strings sort
correctly, one can pad the string with leading zeros.  For example:  0001,
0002, 0003, etc.  The only problem is, of course, that you have to select
some fixed field width.

Dave


reply via email to

[Prev in Thread] Current Thread [Next in Thread]