This commit is contained in:
Andrii Hermaniuk 2022-04-07 16:13:25 +02:00
parent ecf4aa94b8
commit d7272a55ca

View File

@ -68,7 +68,7 @@ int compare(const void* p1, const void* p2){
int res=(s2->votes)-(s1->votes);
for(int idx=0; res==0||(s1->name[idx])!='\0';idx++){
res=(int)(s2->name[idx])-(int)(s1->votes[idx]);
res=(int)(s2->name[idx])-(int)(s1->name[idx]);
}
return (s2->votes)-(s1->votes);