diff --git a/README.md b/README.md index 9c35dfe987..5153dcd83d 100644 --- a/README.md +++ b/README.md @@ -101,20 +101,24 @@ By default 20 records and max of 100 are returned per GET request on a table. ``` -## Sorting +## Order by / Sorting -#### _sort +#### ASC ``` /api/payments?_sort=column1 ``` eg: sorts ascending by column1 +#### DESC + ``` /api/payments?_sort=-column1 ``` eg: sorts descending by column1 +#### Multiple fields in sort + ``` /api/payments?_sort=column1,-column2 ```