Pergunta de entrevista da empresa Insight Global

How would you sort an array containing positive and negative numbers based on absolute value