Pergunta de entrevista da empresa PTC

you should make a function that receive an array of objects and return sort array. what all the arguments do you need to receive ?