Thanks for your reply. I admit to not understanding your hint.
I’ve used meta_query as well but it does not support the sorting in combination with the custom field while having a where-clause with a different custom field. Or at least I didn’t get it to work.
For now I’m building an own array with the data needed and do a multi-sort to get the result I need.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users