- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
int buf;
for (int j = 1; j < srows.Length; j++)
for (int i = 0; i < srows.Length - j; i++)
{
if (vrows[i] > vrows[i + 1])
{
buf = vrows[i];
vrows[i] = vrows[i + 1];
vrows[i + 1] = buf;
buf = srows[i];
srows[i] = srows[i + 1];
srows[i + 1] = buf;
}
}