I'm teaching kids Scratch, which means I need to learn it!
This program asks for a list of numbers, then prints the sorted result.
Eg if we give it the numbers 1488, 9001, 666, 777, and 13, and 12, it gives us:
The sorted list appears in the bottom right corner.
Originally, I called this "insertion sort", but actually I realized it is selection sort.
To demonstrate why block-based visual programming is maybe not the future, here's how easy this is in Python:
def selection_sort_r(lst):
if lst:
yield min(lst)
lst.remove(min(lst))
yield from selection_sort_r(lst)