mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 10:26:41 -05:00
Update update-codes.js
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user