Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [banana] How do I sort number by its values?

Quote Reply
Re: [banana] How do I sort number by its values? In reply to
Zero-padding the numbers will give the correct results in the sort, e.g.;

0001, 0002, 0003, 0010, 0011, 0015, 0023, etc.

... but you'd want to remove the leading zero's at print / build time.

You probably want to look at Build.pm in the build_title_* subs - someone else will have to give you the perl for removing the zero's as I don't know what it should be - sorry.

All the best
Shaun
Subject Author Views Date
Thread How do I sort number by its values? banana 1311 Nov 3, 2002, 1:29 PM
Post Re: [banana] How do I sort number by its values?
qango 1252 Nov 4, 2002, 12:59 AM