This sorts a list, it does it by detecting if a number is more than the one before it, and if it is it swaps this, it cycles through the whole list, if it is sorted then yay, else it repeats the cycle again. The attempts variable is the amount of times it has to cycle through the list You can also use words instead of numbers (see inside)