shish 3 лет назад
Родитель
Сommit
22de49cf8b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      console/controllers/CgController.php

+ 1 - 1
console/controllers/CgController.php

@@ -89,7 +89,7 @@ class CgController extends Controller
     {
         ini_set('memory_limit', '2045M');
         set_time_limit(0);
-        $list = PurchaseItemClass::getAllByCondition(['id>' => 0], null, '*', null, true);
+        $list = PurchaseItemClass::getAllByCondition(['id>' => 0], 'id DESC', '*', null, true);
         if (!empty($list)) {
             foreach ($list as $item) {
                 $info = $item->itemInfo;