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

List::Sort() method

يرتب العناصر في القائمة باستخدام المقارن الافتراضي.

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

انظر أيضًا

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

يرتب العناصر في القائمة.

void System::Collections::Generic::List<T>::Sort(Comparison<T> comparison, bool)
ParameterTypeالوصف
comparisonComparison<T>Comparison للاستخدام.

انظر أيضًا

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

يرتب العناصر في القائمة.

void System::Collections::Generic::List<T>::Sort(const SharedPtr<System::Collections::Generic::IComparer<T>> &comparator)
ParameterTypeالوصف
المقارنconst SharedPtr<System::Collections::Generic::IComparer<T>>&المقارن للاستخدام.

انظر أيضًا

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

يرتب العناصر في شريحة القائمة.

void System::Collections::Generic::List<T>::Sort(int index, int count, SharedPtr<System::Collections::Generic::IComparer<T>> comparator)
ParameterTypeالوصف
الفهرسintفهرس بداية الشريحة.
countintحجم الشريحة.
المقارنSharedPtr<System::Collections::Generic::IComparer<T>>المقارن للاستخدام.

انظر أيضًا