The following code shows how to use the Bubble Sort algorithm to sort an array of numbers, the script file is also attached.