|XP is just a number|
Sorting according to dateby campbell (Sexton)
|on Jun 09, 2003 at 17:00 UTC||Need Help??|
campbell has asked for the
wisdom of the Perl Monks concerning the following question:
Hi. I am new to Perl and I am trying to sort a list of documents according to the date they were issued, and display the sorted list as a table. (At the moment they are sorted according to title.)
At the moment, what I am doing is this:
I have the documents listed in a subdirectory, and I create an array of the documents using:
The list is then sorted using:
The issue date of each document has already been stored in the document header as 'description'. The titles and issue dates and are therefore extracted from the documents, and turned into a table, as follows:
I would like to modify this whole program so that the documents are sorted according to issue date, rather than title.
There's probably some really simple way of doing this. Can anybody tell me what it is?