Skip to content

Invidious is an alternative front-end to YouTube

Sort engage types

Omar Roth7dfb3018581a
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"