Sorting Category List Box?

M

Mr HAL

I have a list box which is bound to the Categories field.
I am using this to display a list of available categories along with the
currently selected categories for this contact. (Populated on the Item_Open
event)
(So there may be 14 in total in the listbox, but only 4 currently selected
etc)

I need to somehow sort the listbox contents so that the categories are in
alphabetic order. For some reason the currently selected categories are put
first in the list followed by the remaining availabe entries.

I am using one array to populate the listbox with available categories, and
"Split"ing the categories field into another array for comparison against the
first. (To avoid adding duplicate categories to the listbox).

I know I can't use the Sort method here. Any help / ideas please?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top