input: Write a function to design an algorithm in Python that takes an array and sorts it in ascending order. The function should return the sorted array.
  
  def sort_ascending(array):
    array.sort()
    return array
  
  assert sort_ascending([10, 3, 9, 1, 15, 2])==[1, 2, 3, 9, 10, 15]
  assert sort_ascending([5, 4, 3, 2, 1])==[1, 2, 3, 4, 5]
  assert sort_ascending([3, 1, 4, 1, 5, 9, 2])==[1, 1, 2, 3, 4, 5, 9]
  assert sort_ascending([1, 1, 1, 1])==[1, 1, 1, 1]
  assert sort_ascending([])==[]
output: def sort_ascending(array):
    array.sort()
    return array