Re: html:options ordering

2002-10-30 Thread Sven Bischoff
Dennis Muhlestein wrote: I have a hashtable with key/value that get displayed by an html:options tag. Works ok, but they are ordered in reverse order of the id. That isn't any performance problem, but it looks a little strange to the user. For instance, what if you wanted the options in alphab

Re: html:options ordering

2002-10-30 Thread Dennis Muhlestein
Thanks for the comments. Seems to make more sense not to have any ordering functionality in the html:options tag anyway. On Wed, 2002-10-30 at 10:40, Dennis Muhlestein wrote: > I have a hashtable with key/value that get displayed by an html:options > tag. > > Works ok, but they are ordered in

RE: html:options ordering

2002-10-30 Thread Karr, David
> -Original Message- > From: Dennis Muhlestein [mailto:dennis@;zserve.com] > Sent: Wednesday, October 30, 2002 9:41 AM > > I have a hashtable with key/value that get displayed by an > html:options > tag. > > Works ok, but they are ordered in reverse order of the id. That isn't > any p

Re: html:options ordering

2002-10-30 Thread Danny Mui
Hash Tables don't guarantee order when you pull them out enmasse. probably best bet is to store it in a list and sort accordingly (Collections.sort). Dennis Muhlestein wrote: I have a hashtable with key/value that get displayed by an html:options tag. Works ok, but they are ordered in rever

html:options ordering

2002-10-30 Thread Dennis Muhlestein
I have a hashtable with key/value that get displayed by an html:options tag. Works ok, but they are ordered in reverse order of the id. That isn't any performance problem, but it looks a little strange to the user. For instance, what if you wanted the options in alphabetical order? In my case