Ascending/ Descending ordering
Last updated
Last updated
When sorting a database based on a column, we can order the records by ascending or descending order.
By default it sorts by ascending, on click of the "ASC" key it orders it changes to descending "DESC"
Now we can see that the ordering is done by descending order
We can see the ordering of results when sending a request through postman
Copy the endpoint from the top right box
Paste the endpoint and hit send
Here we observe sorting in ascending order by customer_id
Here we observe sorting in descending order by customer_id