orderby (clause) is the C#'s contextual keyword used to define sorting, either ascending or descending to a query.
So, it defines a sorting algorithm to the result that is being queried.
ascending is the default sorting order of orderby clause. We have to make it to descending to achieve elements in descending order.
Asked In: Spotted While Learning |