Sort(Int32,Int32,IComparer) Method
See Also 
SourceCode.Framework Namespace > PersistableObjectList<T> Class > Sort Method : Sort(Int32,Int32,IComparer) Method



index
The zero-based starting index of the range to sort.
count
The length of the range to sort.
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 index As Integer, _
   ByVal count As Integer, _
   ByVal comparer As IComparer _
) 
Visual Basic (Usage)Copy Code
Dim instance As PersistableObjectList(Of T)
Dim index As Integer
Dim count As Integer
Dim comparer As IComparer
 
instance.Sort(index, count, comparer)
C# 
public void Sort( 
   int index,
   int count,
   IComparer comparer
)
C++/CLI 
public:
void Sort( 
   int index,
   int count,
   IComparer^ comparer
) 

Parameters

index
The zero-based starting index of the range to sort.
count
The length of the range to sort.
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