Sort posts in categories.