views:

836

answers:

2

I need to be able to sort the items of a combobox so they will be in alphabetical order. how would I do this?

A: 

Sort dataProvider object for your ComboBox.

Sorting methods varies depending what dataProvider data structure is.

For Array you can use sort() or sortOn() methods. For ArrayCollection check out Sort and SortField classes. I've found example here.

zdmytriv