BlazeSoft interview question

Sort an array by using Javascript.