Sort posts by category