aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-03-19 15:37:31 +0100
committerChocobozzz <me@florianbigard.com>2018-03-19 15:37:31 +0100
commit552586eda61f340515505182fc33c70469c03a2f (patch)
tree54e86ccbf2cb1290d335b65ec7ae6d7204eb8954 /server/models/video
parenta797728009eb5c26cf55624a4a01e8ecb73f1297 (diff)
downloadPeerTube-552586eda61f340515505182fc33c70469c03a2f.tar.gz
PeerTube-552586eda61f340515505182fc33c70469c03a2f.tar.zst
PeerTube-552586eda61f340515505182fc33c70469c03a2f.zip
Fix resolution order
Diffstat (limited to 'server/models/video')
-rw-r--r--server/models/video/video.ts4
1 files 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<VideoModel> {
990 } 990 }
991 }) 991 })
992 .sort((a, b) => { 992 .sort((a, b) => {
993 if (a.resolution < b.resolution) return 1 993 if (a.resolution.id < b.resolution.id) return 1
994 if (a.resolution === b.resolution) return 0 994 if (a.resolution.id === b.resolution.id) return 0
995 return -1 995 return -1
996 }) 996 })
997 997