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
1 changed files with 2 additions and 2 deletions

View File

@ -990,8 +990,8 @@ export class VideoModel extends Model<VideoModel> {
} }
}) })
.sort((a, b) => { .sort((a, b) => {
if (a.resolution < b.resolution) return 1 if (a.resolution.id < b.resolution.id) return 1
if (a.resolution === b.resolution) return 0 if (a.resolution.id === b.resolution.id) return 0
return -1 return -1
}) })