@@ -826,7 +826,7 @@ public function instanceShowComments(Request $request, $id)
826826
827827 $ query = $ this ->applySortingJoin ($ query , $ sort , 'comments ' );
828828
829- $ comments = $ query ->cursorPaginate (3 )->withQueryString ();
829+ $ comments = $ query ->cursorPaginate (10 )->withQueryString ();
830830
831831 return CommentResource::collection ($ comments );
832832 }
@@ -1168,7 +1168,11 @@ private function applySorting($query, $sort)
11681168 'username_asc ' => ['username ' , 'asc ' ],
11691169 'username_desc ' => ['username ' , 'desc ' ],
11701170 'video_count_desc ' => ['video_count ' , 'desc ' ],
1171+ 'user_count_desc ' => ['user_count ' , 'desc ' ],
1172+ 'comment_count_desc ' => ['comment_count ' , 'desc ' ],
1173+ 'reply_count_desc ' => ['reply_count ' , 'desc ' ],
11711174 'follower_count_desc ' => ['follower_count ' , 'desc ' ],
1175+ 'following_count_desc ' => ['following_count ' , 'desc ' ],
11721176 'followers_asc ' => ['followers ' , 'asc ' ],
11731177 'followers_desc ' => ['followers ' , 'desc ' ],
11741178 'likes_desc ' => ['likes ' , 'desc ' ],
0 commit comments