Browse Source

fix epg channel sorting (#101)

pull/105/head
Jason Dove 5 years ago committed by GitHub
parent
commit
7e0bdfdb40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ErsatzTV.Core/Iptv/ChannelGuide.cs

2
ErsatzTV.Core/Iptv/ChannelGuide.cs

@ -32,7 +32,7 @@ namespace ErsatzTV.Core.Iptv @@ -32,7 +32,7 @@ namespace ErsatzTV.Core.Iptv
xml.WriteStartElement("tv");
xml.WriteAttributeString("generator-info-name", "ersatztv");
foreach (Channel channel in _channels.OrderBy(c => c.Number))
foreach (Channel channel in _channels.OrderBy(c => decimal.Parse(c.Number)))
{
xml.WriteStartElement("channel");
xml.WriteAttributeString("id", channel.Number);

Loading…
Cancel
Save