Write a function, sort, that accepts an array of integers, and the number of elements in the array and sorts the array in ascending order (basic sort)