I am trying to figure out how to allow sorting of a wxListCtrl by column.
I am able to call the wxListCtrlCompare function whenever a column heading is selected, but the data that is passed is always the same, no matter what column is selected.
I am setting the data for each list item with SetItemData function call. But, this seems to set the item data for the entire row. When I try to set the item data for each field (using the wxListItem object and m_data field and giving the appropriate row/col value) those values are not passed to my compare function.