Go to BTT_BeginFlee and create a new function called SortFleeArray then add an output called Actors and set it variable type to Actor and set it to an array.

Next create 3 new local variables the first called DistancesL set it to variable type to Float and set it to an array. Next create another called IndexsL and set its type to Integer and set it to an array. Next create another called ActorsL set its type to Actor and set it to an array.

Next copy the image below in the new function you created.

Next add the highlighted node shown in the image below, location at the top of the screenshot.