<prompt> Reverse engineer the following algorithm and explain its function in one sentence.def sort_numbersarr: for i in rangelenarr: for j in rangei: if arri arrj: arri, arrj arrj, arri return arr  <response>: The function sorts a list of numbers in ascending order by scanning elements one by one, sequentially comparing and exchanging their value with previous elements until they reach the correct position. 