← Back to team overview

dhis2-users team mailing list archive

Regarding Data sort through an APi

 

Hi all,

Can we sort data getting through an Api, I am trying using sortOrder but it
did not helped.

Following is the complete url:

https://play.dhis2.org/demo/api/dataElementGroups?fields=dataElements[id,name]&sortOrder=ASC

                                OR

https://play.dhis2.org/demo/api/dataElementGroups?fields=dataElements[id,name]&sortOrder=DESC

Want to sort all the dataelements alphabetically or in some random required
order which we can define in Api only(say sort by dataelement or sort by
name etc.)

Thanks & Reagrds,
Sourabh Bhardwaj.

Follow ups