Sorting
OrderBy()
OrderByDescending()
ThenBy()
ThenByDescending()
Reverse()
Notes
If you want to call
ThenBy
, you should callOrderBy
first or you need to cast it toIOrderedQueryable
:ThenBy
will work sorting the second fields in the order you want if there are fields inOrderBy
with equal value
Last updated