diff --git a/scripts/commands/parse-channels.js b/scripts/commands/parse-channels.js index 76fe5954..932423fa 100644 --- a/scripts/commands/parse-channels.js +++ b/scripts/commands/parse-channels.js @@ -38,6 +38,8 @@ async function main() { } } + channels = _.sortBy(channels, 'xmltv_id') + const xml = json2xml(channels, config.site) const dir = path.parse(options.config).dir