Undata Api

UN Data API Project

Forum Thread: Sorting Results with the UN Data API

This archived thread asks whether the UN Data API can return results in a specified order and includes the maintainer's response about sorting support that was planned at the time. Because the discussion is historical, consult the current documentation for up-to-date behaviour.

Is it possible to order or sort results from the UN Data API?
This thread focuses on ordering results. According to the maintainer's reply, sorting was a planned feature — likely offered through a sort parameter — rather than something available at the time of writing. See the current documentation for the latest status of sorting support.
Which sort syntax was suggested for the API?
The parameter proposed here follows patterns such as ?sort=year, ?sort=country, ?sort=year,country, or ?sort=country,year — supporting either a single field or a comma-separated combination of fields.
Is multi-field sorting supported?
Yes — the examples in this discussion use comma-separated field lists like year,country and country,year, suggesting multi-field ordering where fields are applied in the order listed.
When was sorting anticipated to be ready?
The reply stated it would not be immediate but would likely arrive within the next few weeks. Since this is a historical discussion, verify the current behaviour in the documentation before depending on it.
Where can I ask follow-up questions about ordering?
Start a new topic in the Forum, or check the Documentation for the latest query parameters.

Visit the Forum Read the Documentation

Discover Undata Api

Ordering results lets you present UN Data API responses in a sequence that suits your application, whether you prefer a single field or a combination of fields. The discussion here reflects an early stage of that feature, so always confirm the supported parameters in the current documentation before building queries around them.