Merge branch 'ticket-invoiceOrderBy'
This commit is contained in:
commit
bdcd83c40c
@ -932,13 +932,13 @@ class Sale {
|
|||||||
return $order_print;
|
return $order_print;
|
||||||
} else {
|
} else {
|
||||||
// tri par date pour les M2+
|
// tri par date pour les M2+
|
||||||
|
sort($order_print);
|
||||||
usort($order_print, function ($a, $b) {
|
/*usort($order_print, function ($a, $b) {
|
||||||
if ($order_sales[$a] == $order_sales[$b]) {
|
if ($order_sales[$a] == $order_sales[$b]) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return ($order_sales[$a] < $order_sales[$b]) ? -1 : 1;
|
return ($order_sales[$a] < $order_sales[$b]) ? -1 : 1;
|
||||||
});
|
});*/
|
||||||
return $order_print;
|
return $order_print;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user