From 263f371e45936e536943cbae05c4c4440124d2a5 Mon Sep 17 00:00:00 2001 From: ShaiMagal Date: Mon, 11 Nov 2024 09:39:04 +0100 Subject: [PATCH] Properly order customer orders --- classes/order/Order.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/order/Order.php b/classes/order/Order.php index 7e3cf5c7b1df1..34ef8cc9463de 100644 --- a/classes/order/Order.php +++ b/classes/order/Order.php @@ -993,7 +993,7 @@ public static function getCustomerOrders($id_customer, $show_hidden_status = fal WHERE o.`id_customer` = ' . (int) $id_customer . Shop::addSqlRestriction(Shop::SHARE_ORDER) . ' GROUP BY o.`id_order` - ORDER BY o.`date_add` DESC'); + ORDER BY o.`date_add` DESC, o.`id_order` ASC'); if (!$res) { return [];