Good, I would appreciate if someone can take this apart and explain it to "fools". I understand things, that is why I have reached that point of the course, but I do not understand several things. Someone with some clear concept? I know I have to compare the values of the vector, but I do not understand how it does ... Thanks!
public void Ordenar()
{
for (int k = 0; k < 4; k++)
{
for (int f = 0; f < 4 - k; f++)
{
if (sueldos[f] > sueldos[f + 1])
{
int aux;
aux = sueldos[f];
sueldos[f] = sueldos[f + 1];
sueldos[f + 1] = aux;
}
}
}
}