for(i = 1; i < array.length(); i++)
{
for (j=0; j < array.length()-1; j++)
{
if (array[j+1] > array[j])
{
temp = array[j];
array[j] = array[j+1];
array[j+1] = temp;
}
}
}