lex2001 has asked for the wisdom of the Perl Monks concerning the following question:
Hello all,
I a have a script that allows me to enter Expo events which are then printed to an html file. I want them to be sorted by the events start date. Here is how the data is stored in the flat db file.
Macworld Expo|1/7|1/12|San Francisco|CA|http://www.macworldexpo.com
So events need to be sorted by the field "1/7" or jan 7th.
Dates after 1/7 would be sorted next in the list. I tried doing this by changing the dates to numbers -- for ex:
1/7 becomes 172001 and 11/17 becomes 11172001 but of course this doesn't work out logically for sorting.
Any suggestions?
Edited 2001-09-07 by Ovid
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(Ovid) Re: Sorting Data by Date
by Ovid (Cardinal) on Sep 07, 2001 at 22:38 UTC | |
|
Re: Sorting Data by Date (boo)
by boo_radley (Parson) on Sep 07, 2001 at 22:18 UTC | |
by lex2001 (Sexton) on Sep 07, 2001 at 23:01 UTC | |
by dws (Chancellor) on Sep 07, 2001 at 23:07 UTC | |
|
Re: Sorting Data by Date
by stefp (Vicar) on Sep 07, 2001 at 22:28 UTC | |
by lex2001 (Sexton) on Sep 08, 2001 at 00:16 UTC | |
|
Re: Sorting Data by Date
by John M. Dlugosz (Monsignor) on Sep 08, 2001 at 00:59 UTC |