Ascending/ Descending ordering
Overview
When sorting a database based on a column, we can order the records by ascending or descending order.
Choosing type of Sort
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

Testing
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

Last updated