mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-12-02 05:19:17 -06:00
Fix resolution order
This commit is contained in:
parent
a797728009
commit
552586eda6
@ -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 New Issue
Block a user