def METHOD_NAME(self) -> None:
    """Test if sort_videos_list works correctly."""
    request = HttpRequest()
    Favorite.objects.create(
        owner=self.user,
        video=self.video,
        rank=1,
    )
    Favorite.objects.create(
        owner=self.user,
        video=self.video2,
        rank=2,
    )
    Favorite.objects.create(
        owner=self.user,
        video=self.video3,
        rank=3,
    )
    sorted_videos = [self.video3, self.video2, self.video]
    test_sorted_videos = sort_videos_list(
        get_all_favorite_videos_for_user(self.user), request.GET.get("sort", "rank")
    )
    self.assertEqual(list(test_sorted_videos), sorted_videos)
    request.GET["sort"] = "rank"
    request.GET["sort_direction"] = "on"
    sorted_videos = [self.video, self.video2, self.video3]
    test_sorted_videos = sort_videos_list(
        get_all_favorite_videos_for_user(self.user),
        request.GET.get("sort", "rank"),
        request.GET.get("sort_direction"),
    )
    self.assertEqual(list(test_sorted_videos), sorted_videos)
    print(" --->  sort_videos_list ok")