Talk:Bubblesort (script)

From Elanthipedia
Jump to navigation Jump to search

This was an excursion in stormfront scripting I took to see if it could be done.

The result is a properly functioning bubblesort algorithm on a variable size array.

The data are passed in as parameters to the script.

.bubblesort 1 2 3 4 5 6 7

will produce (after much computation)

{7 6 5 4 3 2 1}

There is no practical application of this aside from possibly making a skill sorter or "what do I need to level" script.