Forum Thread: Sorting API Results
This thread looks at whether the UN Data API can return sorted results. It opened on 23 June 2009 and includes a reply from the team.
The Opening Question
Jamie found undata-api.org via Stephen's interview with Jon Udell and asked whether API results can be ordered. If ordering isn't possible yet, Jamie wonders whether it could be added as a feature.
Reply from the Team
Geoff Drake answered that ordering is planned. The probable approach is a parameter like ?sort=year, ?sort=country, ?sort=year,country or ?sort=country,year. It isn't available right away, but it is expected within the next few weeks.
Common Questions
Browse the Site
Sorting is one of the most requested additions to the UN Data API. Until a sort parameter is confirmed in the documentation, results should be treated as unordered, and any ordering should be applied on your side after the response is received.