summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-08-14 14:04:43 -0500
committerOmar Roth <omarroth@hotmail.com>2018-08-14 14:04:43 -0500
commit7dfb3018581af42cbb3810c258c414ae028011df (patch)
treef84a2515f61f5fc97591214581daa2dddd77c128
parentf26e9313ffc346de840ead5fcf43a461c6439ea9 (diff)
downloadinvidious-7dfb3018581af42cbb3810c258c414ae028011df.tar.gz
invidious-7dfb3018581af42cbb3810c258c414ae028011df.tar.bz2
invidious-7dfb3018581af42cbb3810c258c414ae028011df.zip
Sort engage types
-rw-r--r--src/invidious.cr2
1 files changed, 1 insertions, 1 deletions
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"