System::Array::Sort मेथड

Array::Sort(const ArrayPtr<TKey>&, const ArrayPtr<TValue>&) method

दो ऐरे को क्रमबद्ध करता है—एक जिसमें कुंजियाँ हैं और दूसरा‑ संबंधित आइटम—कुंजियों वाले ऐरे के मानों के आधार पर, जिनके तत्वों की तुलना operator< से की जाती है।

template<typename TKey,typename TValue> static void System::Array<T>::Sort(const ArrayPtr<TKey> &keys, const ArrayPtr<TValue> &items)
पैरामीटरविवरण
TKeykeys एरे में तत्वों का प्रकार
TValueitems एरे में तत्वों का प्रकार
पैरामीटरप्रकारविवरण
keysconst ArrayPtr<TKey>&Array जिसमें कुंजी मान होते हैं
itemsconst ArrayPtr<TValue>&Array जिसमें ऐसे आइटम होते हैं जो keys एरे में कुंजी मानों से मैप किए गए हैं

संबंधित देखें

Array::Sort(const ArrayPtr<TKey>&, const ArrayPtr<TValue>&, int, int) method

दो ऐरे को क्रमबद्ध करता है—एक जिसमें कुंजियाँ हैं और दूसरा‑ संबंधित आइटम—कुंजियों वाले ऐरे के मानों के आधार पर, जिनके तत्वों की तुलना डिफ़ॉल्ट तुलना करने वाले से की जाती है।

template<typename TKey,typename TValue> static void System::Array<T>::Sort(const ArrayPtr<TKey> &keys, const ArrayPtr<TValue> &items, int index, int length)
पैरामीटरविवरण
TKeykeys एरे में तत्वों का प्रकार
TValueitems एरे में तत्वों का प्रकार
पैरामीटरप्रकारविवरण
keysconst ArrayPtr<TKey>&Array जिसमें कुंजी मान होते हैं
itemsconst ArrayPtr<TValue>&Array जिसमें ऐसे आइटम होते हैं जो keys एरे में कुंजी मानों से मैप किए गए हैं
सूचकांकintसॉर्ट करने के लिए रेंज की शुरुआत को दर्शाने वाला सूचकांक
lengthintसॉर्ट करने के लिए रेंज में तत्वों की संख्या

संबंधित देखें

Array::Sort(const ArrayPtr<Type>&) method

डिफ़ॉल्ट तुलना करने वाले का उपयोग करके निर्दिष्ट ऐरे में तत्वों को क्रमबद्ध करता है।

template<typename Type> static void System::Array<T>::Sort(const ArrayPtr<Type> &arr)
पैरामीटरप्रकारविवरण
arrconst ArrayPtr<Type>&लक्षित एरे

संबंधित देखें

Array::Sort(const ArrayPtr<Type>&, const SharedPtr<System::Collections::Generic::IComparer<T>>&) method

निर्दिष्ट तुलना करने वाले का उपयोग करके निर्दिष्ट ऐरे में तत्वों को क्रमबद्ध करता है।

template<typename Type> static void System::Array<T>::Sort(const ArrayPtr<Type> &arr, const SharedPtr<System::Collections::Generic::IComparer<T>> &comparator)
पैरामीटरप्रकारविवरण
arrconst ArrayPtr<Type>&लक्षित एरे
तुलनाकारconst SharedPtr<System::Collections::Generic::IComparer<T>>&एरे के तत्वों की तुलना करने के लिए उपयोग किया जाने वाला IComparer ऑब्जेक्ट

संबंधित देखें

Array::Sort(const ArrayPtr<Type>&, const SharedPtr<System::Collections::Generic::IComparer<Y>>&) method

लागू नहीं किया गया।

template<typename Type,typename Y> static void System::Array<T>::Sort(const ArrayPtr<Type> &arr, const SharedPtr<System::Collections::Generic::IComparer<Y>> &comparator)

संबंधित देखें

Array::Sort(const ArrayPtr<Type>&, int, int) method

डिफ़ॉल्ट तुलना करने वाले का उपयोग करके निर्दिष्ट ऐरे में तत्वों की एक रेंज को क्रमबद्ध करता है।

template<typename Type> static void System::Array<T>::Sort(const ArrayPtr<Type> &arr, int startIndex, int count)
पैरामीटरप्रकारविवरण
arrconst ArrayPtr<Type>&लक्षित एरे
startIndexintसॉर्ट करने के लिए तत्वों की रेंज की शुरुआत को दर्शाने वाला सूचकांक
countintसॉर्ट करने के लिए तत्वों की रेंज का आकार

संबंधित देखें