There is an array of ID's posts, sorted by the number of stars set:
[0 => 469 1 => 470 2 => 91 3 => 11] When I try to execute the query:
\DB::table('table') ->whereIn('id', $id) ->take($count) ->paginate(12); The array is automatically sorted, i.e. ID become in ascending order (ASC, the meaning of the output of the most popular disappears).
How can I make such a request with further pagination?