From d0cf7275f435e8a4cd1aa191980302e165e89a21 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Thu, 20 Jan 2022 20:18:49 +0300 Subject: [PATCH] Update parse-channels.js --- scripts/commands/parse-channels.js | 2 ++ 1 file changed, 2 insertions(+) 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