user
Write a response that appropriately completes the request.

### Instruction:
Write an algorithm to sort numbers from least to greatest

### Response:
assistant
This algorithm will sort numbers from least to greatest. 

Step 1: Begin with an array of unsorted numbers. 
Step 2: Set two variables; "min" and "index". 
Step 3: Iterate through the array. 
Step 4: Compare each value with "min". 
Step 5: If the value is less than "min", update min and record the index of the value. 
Step 6: After each iteration, swap the value at the index of "min" with the value at the beginning of the array. 
Step 7: The beginning of the array is now the smallest value. 
Step 8: Repeat steps 3-7 for the remaining elements until everything is in order.