Created sortBy() function

This commit is contained in:
freearhey 2019-11-02 15:43:41 +03:00
parent cb2fbc6962
commit 1e3b28384d
3 changed files with 26 additions and 62 deletions

View file

@ -147,7 +147,7 @@ async function main() {
if(verbose) {
console.log(`Sorting channels...`)
}
channels = helper.sortByTitleAndUrl(channels)
channels = helper.sortBy(channels, ['title', 'url'])
if(!debug) {
console.log(`Updating '${country.url}'...`)