public void Sort(int [] list)
{
int temp;
for (int j = 0; j < list.Length; j++ )
{
for (int i = 0; i < list.Length - 1; i++)
{
if (list[i] < list[i + 1])
{
temp = list[i];
list[i] = list[i + 1];
list[i + 1] = temp;
}
}
}
}
{
int temp;
for (int j = 0; j < list.Length; j++ )
{
for (int i = 0; i < list.Length - 1; i++)
{
if (list[i] < list[i + 1])
{
temp = list[i];
list[i] = list[i + 1];
list[i + 1] = temp;
}
}
}
}