Respuesta :
Sorting involves arranging a set of elements in a particular order (ascending or descending)
How to sort the list elements
The list elements are given as:
3, 2, 4, 5, 1, 6
To sort the list in ascending order, the adjacent elements are compared, and the smaller element is pushed to the left.
So, we have the following steps
- Begin with 3, 2, 4, 5, 1, 6
- Compare 3 and 2. 2 is less than 3. So, we have: 2, 3, 4, 5, 1, 6
- Compare 4 and 3. 4 is greater than 3. So, we have: 2, 3, 4, 5, 1, 6
- Compare 5 and 4. 5 is greater than 4. So, we have: 2, 3, 4, 5, 1, 6
- Compare 1 all the way to the first element. So, we have: 1, 2, 3, 4, 5, 6
- Compare 6 and 5. 5 is less than 6. So, we have: 1, 2, 3, 4, 5, 6
See attachment for the complete step that sorts the list
Read more about sorting techniques at:
https://brainly.com/question/15263760
