This method is called on the PostList regardless of other circumstances. Due to the updated_at sort order, the collection leans heavily towards sorting blog posts by date of update – which does not seem right.
The most obvious place where this method is called is here: Block/Post/PostList.php#L215. It seems to me that it should be an if/else there. If that was to be done though, the is_pinned attribute sort would need to be moved a different method.
This method is called on the PostList regardless of other circumstances. Due to the
updated_at
sort order, the collection leans heavily towards sorting blog posts by date of update – which does not seem right.The most obvious place where this method is called is here: Block/Post/PostList.php#L215. It seems to me that it should be an
if/else
there. If that was to be done though, theis_pinned
attribute sort would need to be moved a different method.