SortingItem #

Represents one sorting criteria.

API #

Other properties #

Name Type Description
SortDirection SortDirection Gets or sets the sort direction of SortString/SortKeySelector.
SortKeySelector Expression<Func<TItem, IComparable>> Gets or sets the selector function for the sorting key. Used for automatic in-memory sorting.
SortString string Gets or sets the sorting value as a string. Can be used to pass value between application layers (e.g., WebAPI call parameter).

Methods #

Method Returns Description
EqualsIgnoringSortDirection(SortingItem<T> sortingItem) bool Returns true when this and the sorting item describe the same sorting (direction is ignored).
WithToggledSortDirection() SortingItem<TItem> Returns the SortingItem describing the same sorting with toggled direction.
An unhandled error has occurred. Reload 🗙