Method NeedSort
NeedSort(IComparer<T>)
Determines if the list needs sorting based on given criteria.
public bool NeedSort(IComparer<T> comparer)
Parameters
comparer
IComparer<T>Comparer object to perform comparison between items in the list.
Returns
- bool
True if list has to be sorted; otherwise false.