diff --git a/cv2/program.c b/cv2/program.c index 8b00774..97b85b0 100644 --- a/cv2/program.c +++ b/cv2/program.c @@ -21,7 +21,7 @@ int comparator(const void* a, const void* b) } if (A.price == B.price) { - return 0; + return strcmp(A.name, B.name); } if (A.price > B.price) {