makes sort_by_favorites unnecessary