OmniPay interview question

Write a program on ascending order for array of elements