Hi,
Two ideas:
1. populate a multidimensional array or arraylist or hash table with the 2
elements (the string and the integer); when the user clicks a button, sort
as specified and repopulate the listbox.
2. if you are sorting it as part of a static listbox in a form, thus no
user interaction, you can use the idea above to sort and then populate once
in the form's load event.
HTH,
Bernie Yaeger
" Just Me" <ne********@a-znet.com> wrote in message
news:Oa*************@TK2MSFTNGP11.phx.gbl...
I populate a ListBox with Objects (not Strings) that has a String field
(which is displayed) and an Integer field (which is not displayed).
I need to have the displayed items in the Listbox sorted. But sorted by
the Integer field not the displayed String.
Is there some way I can do that (in much the way a ListView can be sorted
by any column)
Thanks