green flag to reset and update length turbo mode is recommended for long lists, shift press green flag
very inefficient but simple sorting algorithm stable adaptive space - O(1) inplace time compl - best: Ω(n) average: Θ(n^2) worst: O(n^2) loop through everything and if the next item is less, swap them repeat until its sorted eg: [4, 7, 2, 6, 5] [4, 7, 2, 6, 5] _^_^ [4, 2, 7, 6, 5] ___^_^ [4, 2, 6, 7, 5] _____^_^ [4, 2, 6, 5, 7] _______^_^ [2, 4, 6, 5, 7] _^_^ [2, 4, 5, 6, 7] ___^_^ it would keep going but its already sorted so no point in writing it again