|I use an example to explain:
The CListCtrl contains :
* 2 columns
room name and value, different rooms may have same value.
* 100 rows
each row represents a room.
Item data are assigned with room ID (int), which are from 1 to 100 uniquely.
When user clicks CListCtrl header of name or value, items are sorted ascendantly or decendently with name or value respectively.
Above are easy, now I need extra sorting:
The room with ID of 10 exactly follows room 9, 20 follows 19, and so on to 100 follows 99.
In other words, (9,10), (19,20), ..., (99,100) are in "team".
The extra sorting is not affected by name and value sorting.
Any ideas or suggestions?