Method SortDescending
SortDescending(Comparison<T>)
Sorts the items in descending order based on the specified comparison logic.
public virtual void SortDescending(Comparison<T> comparison)
Parameters
comparisonComparison<T>A delegate that defines the comparison logic to apply to the items. The delegate should return a value less than zero if the first item is less than the second, zero if they are equal, or greater than zero if the first item is greater than the second.
Remarks
This method performs the sorting operation only if the collection contains items. The sorting is executed in descending order by reversing the result of the provided comparison logic.