Sorting Algos (short for Algorithms)

Bubble sort:

This algorithm goes through each array, swapping an item if the next one is smaller than the current item it's checking.

Optimisations:

Insertion sort:

This time, instead of bubbling items to the top, we set the start of list to be "sorted", and slap in the rest of the items in order by comparing the items to the sorted part

Optimisations:

Merge Sort:

Hella aura for this one, this is my fav guys.

- Split up the list into individual items.

- Merge those parts by comparing pairs of items to eachother to find out what order they should go in

- when comparing, if one of the items / mini arrays is empty, pop the other array onto the combined mini array and move on

- Slap these compared mini arrays into a seperate array, then compare those mini arrays and so on until it's all sorted

I don't really know how to describe this one too well, it's easier visually, but the best i can do is show a youtube video but i'm a lazy guy

Stalin Sort:

DAVAI COMRADES ZIS IS STALIN SORT!!!

Go through list of people- i mean, items, and if the one you're checking has a smaller value than the previous one, execute that item out of the array

This is the best alorithm. You only need to go through the list once!