Fix resolution order
This commit is contained in:
parent
a797728009
commit
552586eda6
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue