DXRacer interview question

Hand write quick sort in JavaScript.