System::Collections::Generic::List::Sort method

List::Sort() method

Sorterar element i listan med standardjämförare.

void System::Collections::Generic::List<T>::Sort()

Se även

List::Sort(Comparison<T>, bool) method

Sorterar element i listan.

void System::Collections::Generic::List<T>::Sort(Comparison<T> comparison, bool)
ParameterTypeBeskrivning
comparisonComparison<T>Comparison att använda.

Se även

List::Sort(const SharedPtr<System::Collections::Generic::IComparer<T>>&) method

Sorterar element i listan.

void System::Collections::Generic::List<T>::Sort(const SharedPtr<System::Collections::Generic::IComparer<T>> &comparator)
ParameterTypeBeskrivning
komparatorconst SharedPtr<System::Collections::Generic::IComparer<T>>&Komparator att använda.

Se även

List::Sort(int, int, SharedPtr<System::Collections::Generic::IComparer<T>>) method

Sorterar element i listsegmentet.

void System::Collections::Generic::List<T>::Sort(int index, int count, SharedPtr<System::Collections::Generic::IComparer<T>> comparator)
ParameterTypeBeskrivning
indexintSlice startindex.
countintSlice storlek.
komparatorSharedPtr<System::Collections::Generic::IComparer<T>>Komparator att använda.

Se även