From de3f4a8d50c20cd0febf2822832ebb163fd22038 Mon Sep 17 00:00:00 2001 From: oof1lab Date: Tue, 31 Oct 2017 14:26:51 +0000 Subject: [PATCH] doc update: format sorting --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 ```