Skip to content

Commit

Permalink
Properly order customer orders
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaiMagal authored and Hlavtox committed Nov 11, 2024
1 parent 18c3c00 commit 263f371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/order/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 [];
Expand Down

0 comments on commit 263f371

Please sign in to comment.