OddEvenSort<T> class

Implementation of an Odd Even sort (brick sort) for IList

public class OddEvenSort<T> : IInPlaceSort<T>
    where T : IComparable
parameter description
T T must implement IComparable

Public Members

name description
OddEvenSort() The default constructor.
Sort(…) Performs an in-place sort of the collection.

Remarks

More information about Odd Even Sort can be found at Wikipedia or this blog post.

See Also