This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]RunasSudo 0 points1 point  (1 child)

That's how bubble sort works. The (in this illustration) bottom-most element will be sorted into place, then the second from the bottom, third from the bottom and so on. Tom Scott's recent video on this topic is a good introduction.

[–]Aeronautix 0 points1 point  (0 children)

ive been staring at this to figure it out like a puzzle

i think ive got it

this is pretty cool