List Item Swap Practice

Since many sorting algorithms, like bubble sort, selection sort, and insertion sort, sort the list in place by swapping items in the list until the list is sorted, you can use this page to practice acting out those algorithms.

To generate a list of random numbers from 1 to 20, . (Note that the list may include duplicates. Most sorting algorithms, if done properly, should still work even with the duplicates.)

You can also use this slider to keep track of what part of the list is sorted and what part is unsorted. (Some algorithms start making the sorted part on the left, and some make it on the right, so you will need to keep track of it yourself.)