[]
        
(Showing Draft Content)

GrapeCity.Documents.Common.StructList-1.Sort

Sort Method

Sort(StructComparison<T>)

Sorts the elements in the entire StructList<T> using the specified StructComparison<T>.

Declaration
public void Sort(StructComparison<T> comparison)
Public Sub Sort(comparison As StructComparison(Of T))
Parameters
Type Name Description
StructComparison<T> comparison

The StructComparison<T> to use when comparing elements.

Sort(int, int, StructComparison<T>)

Sorts the elements in a range of elements in StructList<T> using the specified StructComparison<T>.

Declaration
public void Sort(int index, int count, StructComparison<T> comparison)
Public Sub Sort(index As Integer, count As Integer, comparison As StructComparison(Of T))
Parameters
Type Name Description
int index

The zero-based starting index of the range to sort.

int count

The length of the range to sort.

StructComparison<T> comparison

The StructComparison<T> to use when comparing elements.

Sort(IStructComparer<T>)

Sorts the elements in the entire StructList<T> using the specified comparer.

Declaration
public void Sort(IStructComparer<T> comparer)
Public Sub Sort(comparer As IStructComparer(Of T))
Parameters
Type Name Description
IStructComparer<T> comparer

The IStructComparer<T> implementation to use when comparing elements.

Sort(int, int, IStructComparer<T>)

Sorts the elements in a range of elements in StructList<T> using the specified comparer.

Declaration
public void Sort(int index, int count, IStructComparer<T> comparer)
Public Sub Sort(index As Integer, count As Integer, comparer As IStructComparer(Of T))
Parameters
Type Name Description
int index

The zero-based starting index of the range to sort.

int count

The length of the range to sort.

IStructComparer<T> comparer

The IStructComparer<T> implementation to use when comparing elements.