1
0
Fork 0

Fix resolution order

This commit is contained in:
Chocobozzz 2018-03-19 15:37:31 +01:00
parent a797728009
commit 552586eda6
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -990,8 +990,8 @@ export class VideoModel extends Model<VideoModel> {
}
})
.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
})