add sort, reverse to getRecommendations