Update selection after sorting (in LISTVIEW_SortItems) by making sure selection list matches states of individual items.