Update sort.js
This commit is contained in:
parent
835e568929
commit
d4acf171cc
|
@ -21,7 +21,7 @@ async function main() {
|
||||||
|
|
||||||
async function sortChannels(playlist) {
|
async function sortChannels(playlist) {
|
||||||
const channels = [...playlist.channels]
|
const channels = [...playlist.channels]
|
||||||
utils.sortBy(channels, ['name', 'url'])
|
utils.sortBy(channels, ['name', 'status', 'url'])
|
||||||
|
|
||||||
if (JSON.stringify(channels) !== JSON.stringify(playlist.channels)) {
|
if (JSON.stringify(channels) !== JSON.stringify(playlist.channels)) {
|
||||||
log.print('updated')
|
log.print('updated')
|
||||||
|
|
Loading…
Reference in New Issue