sorting my_ads and my_rated_ads