[]
        
(Showing Draft Content)

C1.C1Schedule.AppointmentList.Sort

Sort Method

Sort()

Sorts the elements in the entire AppointmentList using the default comparer (by the Appointment.Start value).

Declaration
public void Sort()

Sort(Comparison<Appointment>)

Sorts the elements in the entire AppointmentList using the specified System.Comparison.

Declaration
public void Sort(Comparison<Appointment> comparison)
Parameters
Type Name Description
Comparison<Appointment> comparison

The Comparison<T> to use when comparing elements.

Sort(IComparer<Appointment>)

Sorts the elements in the entire AppointmentList using the specified comparer.

Declaration
public void Sort(IComparer<Appointment> comparer)
Parameters
Type Name Description
IComparer<Appointment> comparer

The IComparer{Appointment} implementation to use when comparing elements, or a null reference (Nothing in Visual Basic) to use the default comparer.

Sort(int, int, IComparer<Appointment>)

Sorts the elements in a range of elements in AppointmentList using the specified comparer.

Declaration
public void Sort(int index, int count, IComparer<Appointment> comparer)
Parameters
Type Name Description
int index

The zero-based starting index of the range to sort.

int count

The length of the range to sort.

IComparer<Appointment> comparer

The IComparer{Appointment} implementation to use when comparing elements, or a null reference (Nothing in Visual Basic) to use the default comparer.