Изменить 'du5/program.c'

This commit is contained in:
Oleksandr Hryshchenko 2021-04-06 14:58:45 +00:00
parent 70ecbcac84
commit 013cf048b4

View File

@ -42,6 +42,11 @@ void bsortDesc(struct entry* list[80], int s){
list[j] = list[j + 1];
list[j + 1] = temp;
}
else if ((list[j]->votes == list[j + 1]->votes) && (list[j]->name[0] < list[j + 1]->name[0])){
temp = list[j];
list[j] = list[j + 1];
list[j + 1] = temp;
}
}
}
}