I can’t really say, I can’t tell by looking at this what you are trying to sort. It is also not really ACF that you’re looking for help with but sorting an array (that I don’t understand by looking at the code) that you are getting from somewhere else.
I might be able to point you in the right direction if I can understand what the array looks like that you’re trying to sort and how you’re trying to sort it.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users