Fixes issue with row sorting while an item is selected. bjmcmorran