Sort Results

Learn to sort the results in ascending and descending order.

Use of order by

There are many times that we want the results to be returned in a specific order. For example, let’s suppose that we want to get the list of products in ascending order of name. This is how we do that:

Get hands-on with 1400+ tech skills courses.