Here is the e.g.
var sorted_result = query_result.OrderBy(n=>n.ID);
the above OrderBy() function sorts the query result in ascending order based on the column ID.
you can define sorting criteria using any column with the help of function literal n=>n.<column>
Note: instead of n, you can use any character for function literal.