From a70cc85c3a8216a965e5318e1af658c66f9c7ce0 Mon Sep 17 00:00:00 2001 From: Pavlo Tverdyi Date: Thu, 16 Apr 2020 15:51:34 +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'du6/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du6/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/du6/program.c b/du6/program.c index 8047f2f..956366c 100644 --- a/du6/program.c +++ b/du6/program.c @@ -69,7 +69,7 @@ void sort(struct LIS* list,int count){ min=list[i].fname; mini=i; for(int j=i+1;j<=count;j++){ - if(strcmp(min,list[j].fname)==0 && strcmp(list[mini].name,list[j].name)<0){ + if(strcmp(min,list[j].fname)==0 && strcmp(list[mini].name,list[j].name)>0){ ilusion=list[i]; list[i]=list[mini]; list[mini]=ilusion;