Ken преди 1 седмица
родител
ревизия
2cc9c2153d
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      app/Services/GameplayRuleService.php

+ 1 - 0
app/Services/GameplayRuleService.php

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