implemented sorting of smart content