Open ArcticZeroo opened 7 years ago
Hey @ArcticZeroo, Thanks for the PR!
This looks great 🎉 Only issue being, it doesn't follow the code styles used by the project.
To fix that, run
$ ./node_modules/.bin/prettier -l src/*.js
And push those changes, then we can merge this.
Whoops, phone misclick. Ignore that.
I'll make the changes later, just left the dorm!
This PR does a few things:
getSortedPlaylist
which allows custom comparators to be usedgetSortedPlaylist
method because async functions don't catch failures inawait
calls--likes
option to sort videos by likes (alias-l
) (fixes #16 )