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.