Pinned topics lose priority when sorted by views or replies but not when sorted by activity

Hello all,
I have noticed a minor inconsistency in user experience.
When the topics are sorted by Replies or Views, the pinned topics do not remain at the top.
This does not happen when sorted by Activity in both ascending and descending order.
This results in inconsistent behaviour.

For keeping the user experience consistent, I think all the sorting should either keep the pinned topics on top at all times or simply sort them with the non-pinned topics