Open main menu

CDOT Wiki β

Changes

Strategy

8 bytes added, 17:16, 7 February 2007
no edit summary
By default the QuickSort algorithm is used to sort item in the list.
Some times there is a need to use a different sort algorithm there is a overload of sort that takes an IComparer.
<br><brpre>
class CoolComparer : IComparer
{
IComparer myComparer = new CoolComparer();
items.Sort(myComparer); // Delegate Comparison Method
</pre>
1
edit