Sort(IComparer) Method
See Also 
SourceCode.Framework Namespace > PersistableObjectCollectionBase<TParent,TItem> Class > Sort Method : Sort(IComparer) Method



comparer
The System.Collections.IComparer implementation to use when comparing elements.-or- null to use the System.IComparable implementation of each element.

Glossary Item Box

Sorts the PersistableObjects in the entire SourceCode.Framework.PersistableObjectList<T> using the specified comparer.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub Sort( _
   ByVal comparer As IComparer _
) 
Visual Basic (Usage)Copy Code
Dim instance As PersistableObjectCollectionBase(Of TParent,TItem)
Dim comparer As IComparer
 
instance.Sort(comparer)
C# 
public void Sort( 
   IComparer comparer
)
C++/CLI 
public:
void Sort( 
   IComparer^ comparer
) 

Parameters

comparer
The System.Collections.IComparer implementation to use when comparing elements.-or- null to use the System.IComparable implementation of each element.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also