How to sort property by name in API

Hi @Samnang_Sao

The organisation units received from the backend are already sorted alphabetically. However, if they are not sorted, you can use below end pint.
/api/organisationUnits.json?&fields=id,name&order=name

Thanks

1 Like