using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Sort
{
class Select
{
public static void SelectSort(List<int> list)
{
int tmp;
int t;
for (int i = 0; i < list.Count; ++i)
{
t = i;
for (int j = i + 1; j < list.Count; ++j)
{
if (list[t] > list[j])
{
t = j;
}
}
tmp = list[i];
list[i] = list[t];
list[t] = tmp;
}
}
}
}