Talk:Bubblesort (script)

From Elanthipedia
Revision as of 12:36, 24 March 2011 by ISHARON (talk | contribs) (moved Talk:Bubblesort (Script) to Talk:Bubblesort (script))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.