Ken hace 1 semana
padre
commit
17e2f2dca7
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      app/Services/GameplayRuleService.php

+ 2 - 1
app/Services/GameplayRuleService.php

@@ -86,7 +86,8 @@ class GameplayRuleService extends BaseService
     public static function paginate(array $search = [])
     {
         $limit = isset($search['limit'])?$search['limit']:15;
-        $paginator = self::model()::where(self::getWhere($search))->paginate($limit);
+        $paginator = self::model()::where(self::getWhere($search))
+            ->orderBy("keywords")->paginate($limit);
         return ['total' => $paginator->total(), 'data' => $paginator->items()];
     }