This is a example of the bubble sorting algorithm. Click the randomize button to randomize the order of the bars. Randomizing is sorta buggy but I will try to fix those bugs in an update. Then click the algorithm button to perform the bubble sorting algorithm on the randomized pillars. It will order them from smallest to biggest. If you want some more info on sorting algorithms open this link: https://brilliant.org/wiki/sorting-algorithms/#sorting-algorithms
https://brilliant.org/wiki/sorting-algorithms/#sorting-algorithms