dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #43544
Re: [Dhis2-users] Regarding Data sort through an APi
I assume you mean metadata (from your examples). Yes, you can use the order
parameter, please have a look at [1].
[1] http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s06.html
On Mon, Feb 29, 2016 at 3:48 PM, Sourabh Bhardwaj <bsourabh191@xxxxxxxxx>
wrote:
> 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.
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help : https://help.launchpad.net/ListHelp
>
>
--
Morten
Follow ups
References