浏览代码

feat(products): adiciona ordem alfabetica

ebagabee 1 月之前
父节点
当前提交
ee119fffbe
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Services/ProductService.php

+ 1 - 1
app/Services/ProductService.php

@@ -9,7 +9,7 @@ class ProductService
 {
 {
     public function getAll(): Collection
     public function getAll(): Collection
     {
     {
-        return Product::orderBy('created_at', 'desc')->get();
+        return Product::orderBy('name')->get();
     }
     }
 
 
     public function getAllForSelect(): Collection
     public function getAllForSelect(): Collection