There is no method to sort the items in place, you can however:
- Use
itemArray
it get an array of all the items - Sort that array using one of the
NSArray
sort methods - Remove the existing items from the menu
removeAllItems
- Unfortunately there is no multiple add method so use a fast enumeration over your sorted array and
addItem:
each one.