Got sortDescriptor refactored to DAO manager and deleted some unnecessary code