Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

PropertyComparator.Sort Method

Sort the given IList according to the given sort definition.

[Visual Basic]
Public Shared Sub Sort( _
   ByVal source As IList, _
   ByVal sortDefinition As ISortDefinition _
)
[C#]
public static void Sort(
   IList source,
   ISortDefinition sortDefinition
);

Parameters

source
The IList to be sorted.
sortDefinition
The parameters to sort by.

Exceptions

Exception Type Condition
ObjectsException In the case of a missing property name.
ArgumentNullException If the supplied sortDefinition is .

See Also

PropertyComparator Class | Spring.Objects.Support Namespace