private void Sort_Click(object sender, EventArgs e)
{
  int a = Convert.ToInt32(textBox1.Text, 10);
  int b = Convert.ToInt32(textBox2.Text, 10);
  int c = Convert.ToInt32(textBox3.Text, 10);
  int temp;
  if (a > b)
  {
     temp = a;
     a = b;
     b = temp;
   }
   if (a > c)
   {
     temp = a;
     a = c;
     c = temp;
   }
   if (b > c)
   {
     temp = b;
     b = c;
     c = temp;
   }
   textBox1.Text = a.ToString();
   textBox2.Text = b.ToString();
   textBox3.Text = c.ToString();
}
