This documentation is archived and is not being maintained.

PropertyDescriptorCollection.InternalSort Method

Sorts the members of this collection.

Overload List

Sorts the members of this collection, using the specified IComparer.

[Visual Basic] Overloads Protected Sub InternalSort(IComparer)
[C#] protected void InternalSort(IComparer);
[C++] protected: void InternalSort(IComparer*);
[JScript] protected function InternalSort(IComparer);

Sorts the members of this collection. The specified order is applied first, followed by the default sort for this collection, which is usually alphabetical.

[Visual Basic] Overloads Protected Sub InternalSort(String())
[C#] protected void InternalSort(string[]);
[C++] protected: void InternalSort(String*[]);
[JScript] protected function InternalSort(String[]);


[Visual Basic, C#, C++] If the PropertyDescriptorCollection contains four PropertyDescriptor objects with the names A, B, C, and D, this results in the properties of myNewColl sorted in the order D, B, A, and C.

[Visual Basic, C#, C++] Note   This example shows how to use one of the overloaded versions of InternalSort. For other examples that might be available, see the individual overload topics.
[Visual Basic] 
Me.InternalSort(New String() {"D", "B"})

this.InternalSort(new string[]{"D", "B"});

String* temp0 [] = {S"D", S"B"};

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

See Also

PropertyDescriptorCollection Class | PropertyDescriptorCollection Members | System.ComponentModel Namespace