//given
final User firstUser = userRepository.save(new User("First user", SOME_DATE, 10, false));
final User secondUser = userRepository.save(new User("Second user", SOME_DATE, 20, false));
final User thirdUser = userRepository.save(new User("Third user", SOME_DATE, 30, false));
final CommentWithUser first = repository.save(new CommentWithUser(firstUser, "First comment", SOME_TIMESTAMP, 3));
final CommentWithUser second = repository.save(new CommentWithUser(secondUser, "Second comment", SOME_TIMESTAMP, 2));
final CommentWithUser third = repository.save(new CommentWithUser(thirdUser, "Third comment", SOME_TIMESTAMP, 1));
//when
final List<CommentWithUser> all = repository.findAll(new Sort(DESC, "favourite_count"));
//then