Ken пре 1 недеља
родитељ
комит
6bce17e64d
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/Services/GameplayRuleService.php

+ 1 - 1
app/Services/GameplayRuleService.php

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