diff --git a/program.c b/program.c index f751351..cfd22d5 100644 --- a/program.c +++ b/program.c @@ -23,7 +23,12 @@ int compare_pizza(const void * left, const void * right) { return -1; } else{ - return 1; + if(a->name[0] > b->name[0]){ + return 1; + } + else{ + return -1; + } } }