public void Sort(
Comparison<T> comparison
)
Public Sub Sort (
comparison As Comparison(Of T)
)
public:
void Sort(
Comparison<T>^ comparison
)
member Sort :
comparison : Comparison<'T> -> unit
This implementation performs an unstable sort; that is, if two elements are equal, their order might not be preserved. In contrast, a stable sort preserves the order of elements that are equal.
On average, this method is an O(n log n) operation, where n is Count; in the worst case it is an O(n ^ 2) operation.
ArgumentNullException | comparison is . |
ArgumentException | The implementation of comparison caused an error during the sort. |