I have created a simple headless WP REST API to manage some data to an app I am creating. Per this post I have implemented that filter plugin to re-allow filtering with ACF and the REST API. Therefore, I am able to create a query that sorts the data (note that I am using custom post types as well as custom fields) via title like so:
But if I try literally any other field, it gives very inconsistent sorting. The biggest issue is trying to sort via dates.
The goal is to do this by only using plugins so that I can focus on any code I write being in the app itself and manage the plugins and leave the rest of the WP instance alone. Therefore I'd prefer a solution that is plugin based or requires forking/editing a plugin. Perhaps I'm just trying to filter things improperly.
I use the following plugins (amongst a few unrelated plugins):
Advanced Custom Fields PRO
ACF to REST API
Custom Post Types UI
WP REST API Controller
WP REST API filter parameter
EDIT: After reviewing this some more, I realize now that the FILTER plugin from the post mentioned above doesn't seem to be working and therefore ACF orderby doesn't work. Is there any way to re-enable
orderby with ACF via plugin?