Sorting an arrayby powerhouse (Friar)
|on Feb 15, 2003 at 00:14 UTC||Need Help??|
powerhouse has asked for the
wisdom of the Perl Monks concerning the following question:
I have a hash, with the months in it:
I'm creating a popup_menu using CGI.pm. Here is the code for that:
That does not sort them from 1 to 12, (jan to dec).
I did have it like this:
That did not sort them either correctly.
How do I get them to sort from 1 to 12(values) or jan to dec(labels), using CGI.pm?
I used up both the ways I know to do it.