EdenwareApps / Megacubo

:tv: A intuitive, multi-language and cross-platform IPTV player. Available for Windows, Android, Linux & macOS.
https://megacubo.tv
GNU General Public License v3.0
287 stars 54 forks source link

channel sort order #27

Closed andekande closed 11 months ago

andekande commented 1 year ago

I am using a m3u playlist that has channel names like this:

tvg-name="TV CHANNEL 1",TV CHANNEL 1
tvg-name="TV CHANNEL1 FHD",TV CHANNEL1 FHD
tvg-name="TV CHANNEL 2",TV CHANNEL 2
tvg-name="TV CHANNEL 10",TV CHANNEL 10

In the User-Interface the sorting is:

More naturally would be:

I'd like to propose to consider numerical sorting instead of alphabetical, independent of the language. Thank You.

Here is some background for Javascript:

EdenwareApps commented 11 months ago

Hi @andekande, feature has been implemented.

In addition to naturally sorting, the current version seeks to make better use of the EPG data, if it is enabled, then the order can be affected by the name of the current TV show in each channel.

This behavior can be changed in Options > Manage channel list > Channel list sorting. The options are:

Thanks for the idea, if you have any suggestions for improvement just let me know.