This commit is contained in:
paoloar77
2024-07-22 12:21:09 +02:00
parent bbe01cf1ab
commit 165fabf13c

View File

@@ -682,7 +682,8 @@ function showDettOrdini()
$str = "Ordini Woocommerce:" . PHP_EOL . '<br>'; $str = "Ordini Woocommerce:" . PHP_EOL . '<br>';
try { try {
$orders = AppOrder::all(); // sort DataOra desc
$orders = AppOrder::all()->sortByDesc('DataOra');
// Show the fields of the orders // Show the fields of the orders
foreach ($orders as $order) { foreach ($orders as $order) {