From e180cf70f8e0852713d52a1e04c61106474447e5 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Fri, 20 Jul 2018 11:24:13 -0500 Subject: [PATCH] Fix sort options for Atom feed --- src/invidious.cr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/invidious.cr b/src/invidious.cr index 954f13e6..80458a5c 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -1022,11 +1022,11 @@ get "/feed/private" do |env| case sort when "alphabetically" videos.sort_by! { |video| video.title } - when "alphabetically - reverse" + when "reverse_alphabetically" videos.sort_by! { |video| video.title }.reverse! - when "channel name" + when "channel_name" videos.sort_by! { |video| video.author } - when "channel name - reverse" + when "reverse_channel_name" videos.sort_by! { |video| video.author }.reverse! end