Created sortBy() function

This commit is contained in:
freearhey
2019-11-02 15:43:41 +03:00
parent c630362d3f
commit 4f7f243b6d
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}'...`)