Merge pull request #4053 from iptv-org/update-sort-script

Update sort.js
This commit is contained in:
Dum4G 2021-08-12 14:37:32 +03:00 committed by GitHub
commit ae5fbce25e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ async function main() {
async function sortChannels(playlist) {
const channels = [...playlist.channels]
utils.sortBy(channels, ['name', 'url'])
utils.sortBy(channels, ['name', 'status', 'url'])
if (JSON.stringify(channels) !== JSON.stringify(playlist.channels)) {
log.print('updated')