naChoZ has asked for the wisdom of the Perl Monks concerning the following question:
My question has to do with hash sorting. I'm doing something similar to the following example:
print $query->scrolling_list(-name=>'list_name',-values=>['eenie','meenie','minie','moe'],-default=>['eenie','moe'],-size=>5,-multiple=>'true',-labels=>\%labels);What I'd like to know if there is any possible way to sort the %labels hash, or cause the scrolling_list routine to sort the hash so that my list box is not so random?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI.pm - scrolling_list and %labels hash
by blakem (Monsignor) on Feb 14, 2002 at 23:31 UTC | |
by naChoZ (Curate) on Feb 15, 2002 at 00:14 UTC | |
|
Re: CGI.pm - scrolling_list and %labels hash
by rjray (Chaplain) on Feb 15, 2002 at 00:17 UTC | |
by naChoZ (Curate) on Feb 15, 2002 at 00:57 UTC | |
by Kanji (Parson) on Feb 15, 2002 at 04:28 UTC | |
by naChoZ (Curate) on Feb 15, 2002 at 05:05 UTC | |
|
Re: CGI.pm - scrolling_list and %labels hash
by shotgunefx (Parson) on Feb 15, 2002 at 10:11 UTC |