Fix accessing wrong item data of Compare refs list
Regression of commit d6d37876
It happened after sorting the Compare refs list
and hiding the unchanged item.
Because the index value of list control does not equal the index value of the m_RefList anymore.
Edited by Yue Lin Ho