From 8dd779e748bc23577aef5162ca95e7fea1775f48 Mon Sep 17 00:00:00 2001 From: Oleksandr Hryshchenko Date: Tue, 6 Apr 2021 15:14:43 +0000 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20'du5/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du5/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/du5/program.c b/du5/program.c index a1d5d6f..eaf43a2 100644 --- a/du5/program.c +++ b/du5/program.c @@ -46,7 +46,7 @@ void bsortDesc(struct entry* list[80], int s){ else if (list[j]->votes == list[j + 1]->votes){ while (list[j]->name[count] == list[j + 1]->name[count]) count++; - if (list[j]->name[0] > list[j + 1]->name[0]){ + if (list[j]->name[count] > list[j + 1]->name[count]){ temp = list[j]; list[j] = list[j + 1]; list[j + 1] = temp;