void shaker()
{
  int a;
  int b;
  int c;

  a = ARRAYSIZE-1;
  b = 0;

  do
  {
    for (c = b; c < a; c++)
      if (Vektor[c] > Vektor[c+1])
        SwapNumbers(c,c+1);
    a--;
    for (c = a; c >= b; c--)
      if (Vektor[c] > Vektor[c+1])
        SwapNumbers(c,c+1);
    b++;
  }
  while (a >= b);
}