Don't sort anything in controls like this. Have your data in some suitable collection and sort your data first like in
System.Collections.Generic.List<int>.Sort()
, using, say (or keep it always sorted like in
System.Collections.Generic.SortedList
,
System.Collections.Generic.SortedDictionary
) and then populate the control with data or bind it.
As you need to use custom order in sorting, use this:
http://msdn.microsoft.com/en-us/library/w56d4y5z.aspx[
^],
http://msdn.microsoft.com/en-us/library/234b841s.aspx[
^].
Code samples are available in the help MSDN articles referenced above.
—SA