Preserve order in m3u file

I have a list of channels that are populated in TV section (according to m3u file) using pvr.iptvsimple addon. The list of channels in m3u file is sorted by name, but in the tv section they are sorted in different order. How can I make it follow the same order in which they are present in m3u file?