Sort array elements in ascending order.