how can i sort in decreasing order?
i did the sort is in increasing order
typedef struct{
char name[30];
CARd hand[3];
CARd biggest_card;
int nro_victories;
}PLAYER;
PLAYER h;
int m, i, j, k;
for(i=0; i<n_playeres-1; i++)
{
k = j;
m = h[i].nro_victories;
for(j=i+1; j<n_players; j++)
{
if(h[j].nro_victories < m)
{
m = h[j].nro_victories;
k = j;
}
}
h[k].nro_victories = h[i].nro_victories;
h[i].nro_victories = m;
}