From 7dfb3018581af42cbb3810c258c414ae028011df Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Tue, 14 Aug 2018 14:04:43 -0500 Subject: [PATCH] Sort engage types --- src/invidious.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious.cr b/src/invidious.cr index 5d1b1797..decd10bb 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -266,7 +266,7 @@ get "/watch" do |env| if video.info["enabled_engage_types"]? engage_types = video.info["enabled_engage_types"].split(",") - engage_types = engage_types.join(", ") + engage_types = engage_types.sort_by { |a| a.to_i }.join(", ") end templated "watch"