From f6f20c28e4f2d588103e76044a9f7336d3059ed5 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Mon, 31 Jan 2022 23:13:48 +0300 Subject: [PATCH] Update update-guides.js --- scripts/commands/update-guides.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/commands/update-guides.js b/scripts/commands/update-guides.js index dd354110..a5fbfda4 100644 --- a/scripts/commands/update-guides.js +++ b/scripts/commands/update-guides.js @@ -79,6 +79,8 @@ async function generateGuides() { } channels = Object.values(channels) + channels = _.sortBy(channels, 'xmltv_id') + programs = _.sortBy(programs, ['channel', 'start']) logger.info(`Creating "${filepath}"...`) const output = grabber.convertToXMLTV({ channels, programs })