From: Roy J. <RJo...@sp...> - 2004-07-10 01:46:01
|
Hello, I realized that when using HTMLForm::selectList that the items in the list = were returned in an unsorted order. For a particular form I'm creating, I = needed the items in the list to be sorted by the 'value' of the options = hash. Attached is some code that does this. (alphabetically ascending = case-insensitive) Basically, when you call selectList from Form.pm you pass an additional = parameter: sortByValue =3D> 1 I haven't actually used this in a WebGUI site yet because I wanted to run = this by you guys before I got too excited. The attached script simply = prints the generated HTML to stdout and demonstrates a simple example. Thanks, Roy |