ImmutableArray<T>::Sort Method (IComparer<T>^)

 

Sorts the elements in the immutable array using the specified comparer.

Namespace:   System.Collections.Immutable
Assembly:  System.Collections.Immutable (in System.Collections.Immutable.dll)

public:
ImmutableArray<T> Sort(
	IComparer<T>^ comparer
)

Parameters

comparer
Type: System.Collections.Generic::IComparer<T>^

The implementation to use when comparing elements, or null to use the default comparer

Return Value

Type: System.Collections.Immutable::ImmutableArray<T>

A new immutable array that contains the items in this array, in sorted order.

Return to top
Show: