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

Update sort.js
pull/4054/head
Dum4G 3 years ago committed by GitHub
commit ae5fbce25e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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')

Loading…
Cancel
Save