fix epg channel sorting (#101)

This commit is contained in:
Jason Dove
2021-03-26 10:36:06 +00:00
committed by GitHub
parent 6bdaca0222
commit 7e0bdfdb40
+1 -1
View File
@@ -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);