fix(utils): stable sort comparator and orphaned JSDoc (#1286)

This commit is contained in:
rahim
2026-04-08 17:39:28 +10:00
committed by GitHub
parent 42abf88095
commit 071325de4d
2 changed files with 1 additions and 7 deletions
+1 -1
View File
@@ -12,5 +12,5 @@ export function getTextTrackList(media: HTMLMediaElement, filterPred: (textTrack
}
function sortByTextTrackKind(a: TextTrack, b: TextTrack): number {
return a.kind >= b.kind ? 1 : -1;
return a.kind > b.kind ? 1 : a.kind < b.kind ? -1 : 0;
}