git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47176
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void wxListMainWindow::SortItems( wxListCtrlCompare fn, long data )
{
void wxListMainWindow::SortItems( wxListCtrlCompare fn, long data )
{
+ // selections won't make sense any more after sorting the items so reset
+ // them
+ HighlightAll(false);
+ ResetCurrent();
+
list_ctrl_compare_func_2 = fn;
list_ctrl_compare_data = data;
m_lines.Sort( list_ctrl_compare_func_1 );
list_ctrl_compare_func_2 = fn;
list_ctrl_compare_data = data;
m_lines.Sort( list_ctrl_compare_func_1 );