CodeMettle interview question

Sort an array of generic elements using any sorting method.