diff --git a/program.c b/program.c index c44ed52..2b1cdc7 100644 --- a/program.c +++ b/program.c @@ -31,7 +31,7 @@ int compare_pizza(const void * left, const void * right) { else if(a->name[i]=='\r' || b->name[i]=='\r'){ break; } - else if(a->name[i] > b->name[i]){ + else if(a->name[i] < b->name[i]){ return 1; } else{