|
|
@@ -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()];
|
|
|
}
|