Duplicated from jbilcke-hf/VideoChain-API
53aa97a
1
2
3
4
5
6
import { Video } from "../types.mts" export function sortPendingVideosByLeastCompletedFirst(videos: Video[]): Video[] { videos.sort((a: Video, b: Video) => a.progressPercent - b.progressPercent) return videos }