The conversation between human and AI assistant.
[|Human|] Reverse engineer the following algorithm and explain its function in one sentence.
[|AI|] 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.
[|Human|] 
Reverse engineer the following algorithm and explain its function in one sentence.