Created sortBy() function

This commit is contained in:
freearhey committed 2019-11-02 15:43:41 +03:00
1 parent c630362d3f
commit 4f7f243b6d
3 files changed
+26 -62

No files matched your search

+1 -1
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}'...`)