as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
write an algorithm to sort an array of unordered numbers.
user
1. iterate through the array and find the lowest value
2. swap the lowest value with the first element in the array 
3. repeat steps 1 and 2 for the remaining elements in the array
4. when the end of the array is reached, the sorting is finished.
assistant