Skip to content

Commit

Permalink
Videos are sorted by date added by default (#1140)
Browse files Browse the repository at this point in the history
  • Loading branch information
LoicBonavent authored May 23, 2024
1 parent 74367f0 commit f2d2c08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pod/video/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ def owner_is_searchable(user: User) -> bool:
def videos(request):
"""Render the main list of videos."""
videos_list = get_filtered_videos_list(request, get_available_videos())
sort_field = request.GET.get("sort") if request.GET.get("sort") else "title"
sort_field = request.GET.get("sort") if request.GET.get("sort") else "date_added"
sort_direction = request.GET.get("sort_direction")

videos_list = sort_videos_list(videos_list, sort_field, sort_direction)
Expand Down

0 comments on commit f2d2c08

Please sign in to comment.