Fleker / CumulusTV

Android TV Live Channel Plugin with user-entered stream files
MIT License
185 stars 72 forks source link

Order in guide does not follow channel numbers #296

Open ryao opened 6 years ago

ryao commented 6 years ago

The order of channels in the guide does not follow channel numbers. I imagine adding a sorting operation somewhere would fix that. I worked around it by just adding in sequence of channel numbers, so it is an annoyance to me rather than to my mother who actually uses the TV. I am just filing an issue rather than figuring out how patch it.

ryao commented 6 years ago

Just in case I or someone else decides to fix this down the line, I think we just need to do a sort in each getChannels() method:

https://github.com/Fleker/CumulusTV/blob/56bc117da26e211a60feceb30bdbb194e8d51936/app/src/main/java/com/felkertech/cumulustv/model/ChannelDatabase.java#L139

I thought it would be a simple fix, so I decided to take a peek at the source to see if I could eyeball the spot. It is just a guess that I have not tested.