From 552586eda61f340515505182fc33c70469c03a2f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 19 Mar 2018 15:37:31 +0100 Subject: [PATCH] Fix resolution order --- server/models/video/video.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 78789ba2c..4e175c410 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts @@ -990,8 +990,8 @@ export class VideoModel extends Model { } }) .sort((a, b) => { - if (a.resolution < b.resolution) return 1 - if (a.resolution === b.resolution) return 0 + if (a.resolution.id < b.resolution.id) return 1 + if (a.resolution.id === b.resolution.id) return 0 return -1 }) -- 2.41.0