C++ function and blueprint function look different

Try changing into this:-
void APlayerC::SortActorsByDistance(const TArray<AActor*>& Actors)