diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-08-14 14:04:43 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-08-14 14:04:43 -0500 |
| commit | 7dfb3018581af42cbb3810c258c414ae028011df (patch) | |
| tree | f84a2515f61f5fc97591214581daa2dddd77c128 /src | |
| parent | f26e9313ffc346de840ead5fcf43a461c6439ea9 (diff) | |
| download | invidious-7dfb3018581af42cbb3810c258c414ae028011df.tar.gz invidious-7dfb3018581af42cbb3810c258c414ae028011df.tar.bz2 invidious-7dfb3018581af42cbb3810c258c414ae028011df.zip | |
Sort engage types
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious.cr | 2 |
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" |
