diff --git a/include/Product.php b/include/Product.php index 9d0d4ac..4160156 100644 --- a/include/Product.php +++ b/include/Product.php @@ -42,7 +42,7 @@ class Product extends Entity { } } - public static function sort($prod1, $prod2) { + public static function compare($prod1, $prod2) { return strcmp(strtolower($prod1->get_name()), strtolower($prod2->get_name())); }