Fixes the order of posts before applying the limit