Added sorting of front page posts and user page posts