To provide a little more specifics over the previous answer :-), it's hard to say without seeing your code, but I'm going to hazard a guess and say that you are providing the text values with something like:
-values => [ keys %hash ]
That is, you may have assigned the keys to an array, or maybe you just passed -labels and let it take the values from there. What you need to do is sort that list, as CGI will treat the list as an ordered set, and preserve the ordering you give it:
-values => [ sort keys %hash ]
If you aren't using the Official Guide to Programming with CGI.pm, I highly recommend getting a copy. Lincoln writes his documentation as well as he writes his code. And there are plentiful examples that are explained block-by-block.
--rjray
In reply to Re: CGI.pm - scrolling_list and %labels hash
by rjray
in thread CGI.pm - scrolling_list and %labels hash
by naChoZ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |