Update nSelectionMark and nFocusedItem when inserting/deleting/sorting items. SortItems: If sorting less than 2 items, do nothing.