H
Hal Vaughan
I can do this with my own sort, but before I do that, I'd like to know if
there is a built in way to do this or a standard method.
I will be taking a set of values for a String[] variable from a data table.
I need to keep the association of each member of the String[] in place so I
can relocate it's row in my table, but I'd like to sort them for display on
a JComboBox or JList. If I use Arrays.sort(myStringArray), it will sort
them, but then I lose any way of tracking the original order.
I know I can write my own sort routine and sort the String[] myself and keep
track of the original values, but is there a quicker and/or easier way?
Thanks!
Hal
there is a built in way to do this or a standard method.
I will be taking a set of values for a String[] variable from a data table.
I need to keep the association of each member of the String[] in place so I
can relocate it's row in my table, but I'd like to sort them for display on
a JComboBox or JList. If I use Arrays.sort(myStringArray), it will sort
them, but then I lose any way of tracking the original order.
I know I can write my own sort routine and sort the String[] myself and keep
track of the original values, but is there a quicker and/or easier way?
Thanks!
Hal