I have a collection of ids as follows:
array:2 [
0 => "102"
1 => "101"
]
Please notice that order matters.
When I query the model like:
$models = Post::whereIn('id', $keys)->get();
it loses the order.
So I expect that post with id 102 comes before 101 but 101 comes first.
How can I force query builder to keep the order