diff --git a/du6/program.c b/du6/program.c index 08f0bc4..c3115f4 100644 --- a/du6/program.c +++ b/du6/program.c @@ -66,7 +66,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){ + if(strcmp(min,list[j].fname)<0){ min=list[j].fname; mini=j; }