mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 16:40:07 -04:00
Update update-codes.js
This commit is contained in:
parent
49c6ad3308
commit
ef31537531
1 changed files with 2 additions and 2 deletions
|
@ -20,8 +20,8 @@ function main() {
|
|||
})
|
||||
|
||||
const sorted = Object.values(codes).sort((a, b) => {
|
||||
if (a.name < b.name) return -1
|
||||
if (a.name > b.name) return 1
|
||||
if (a.name.toLowerCase() < b.name.toLowerCase()) return -1
|
||||
if (a.name.toLowerCase() > b.name.toLowerCase()) return 1
|
||||
return 0
|
||||
})
|
||||
writeToFile('codes.csv', convertToCSV(sorted))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue