Added sorting for the category content.