ProcessQueueTSort(IComparerT) Method

Sorts the elements in the entire ProcessQueueT, using the specified comparer.

Definition

Namespace: Gemstone.Threading.Collections
Assembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.158 -- Release Build+5f840a50b8123565ea38e0c1d6c00b5650022b4a
public virtual void Sort(
	IComparer<T> comparer
)

Parameters

comparer  IComparerT
The Generic.IComparer implementation to use when comparing elements, or null to use the default comparer: Generic.Comparer.Default.

Exceptions

ArgumentExceptionThe implementation of comparer caused an error during the sort. For example, comparer might not return 0 when comparing an item with itself.
InvalidOperationExceptionthe comparer is null and the default comparer, Generic.Comparer.Default, cannot find an implementation of the IComparable generic interface or the IComparable interface for type T.

See Also