added favoritesCount field and used it as orderBy criteria