I\'m trying to implement a paging algorithm for a dataset sortable via many criteria. Unfortunately, while some of those criteria can be implemented at the database level, some
Array.Sort() has an overload that accepts index and length arguments that lets you sort a subset of an array. The same exists for List.
Array.Sort()
index
length
List
You cannot sort an IEnumerable directly, of course.
IEnumerable