If a table row is selected and then the table is sorted (by clicking on a column header), the selection model is updated to indicate that the selection is cleared. However, the display still shows the same item as being selected.
To reproduce, run the following sample.
Select one row in the table.
Click on the column header to sort by that row. Note that the item remains highlighted, indicating it is selected.
Press the button to dump the selection model data. Note that the selectedIndex is -1 and the selectedItem is null.
OTN forum discussion here: https://forums.oracle.com/forums/thread.jspa?forumID=1385&threadID=2531317