A simple bubble sort algorithm in Scratch. What is a bubble sort? "Bubble sort" is a function in coding that sorts a list of numeric values into numerical order. It works by iterating through a list and swapping values to eventually sort them. If you would like to copy/use our bubble sort algorithm in Scratch, click "see inside", then head to the stage where the function is tagged. Controls: x Deletes all values in a list - Removes a value from a list + Adds a value to a list "Sort" sorts the list into numerical order using bubble sort *This function only works with numeric values (including decimals and scientific "e" notation, eg. )
©2025 by Leotime Channel Feel free to remix this project or copy the function, just remember to give credit. More awesome projects by me: https://scratch.mit.edu/studios/27364550/