Last Changes for sort generic control and deals from DB