Moofwd interview question

Sort the given array according to alphabet