Outputs from Campaign API endpoint are not getting sorted alphabetically

Your software
My Mautic version is: 4.4.12
My PHP version is: 7.4.33
My Database type and version is: 10.3.39-MariaDB

Your problem
My problem is:
I am making an API call to:
https://mautic.ddev.site/api/campaigns?limit=5000&published=1&orderby=name

It is not returning the output in alphabetical order, but the segment and email endpoints with the same parameters is outputting everything nicely ordered. Is that by chance a bug, or am I doing something wrong?

i guess it’s a typo in your query. please try orderBy instead of orderby
:wink:

Yes that has resolved it. The strange thing: The other endpoints are working also with lowercase, but this one is not.

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.