[mythtv-commits] Ticket #1930: mythweb channel list for atsc doesn't sort subchannels

MythTV mythtv at cvs.mythtv.org
Thu Jun 8 08:13:20 UTC 2006

#1930: mythweb channel list for atsc doesn't sort subchannels
 Reporter:  p-mtv at treehouse.napa.ca.us  |       Owner:  xris
     Type:  defect                      |      Status:  new 
 Priority:  minor                       |   Milestone:      
Component:  mythweb                     |     Version:      
 Severity:  low                         |  
 In the schedule listings displayed by mythweb, if sorting is by channel
 number, subchannel numbers are not taken into account.
 This can lead to listings ordered as, e.g.,  (9-1, 9-5, 9-3, 9-2, etc.)

 A small patch is attached for includes/channels.php to take subchannels
 into account when sorting by channel. I'm not an SQL whiz so it's probably
 clumsy, but it seems to yield the correct result. Maybe someone who knows
 SQL better can improve upon it.

 The basic idea in the patch is to extract the subchannel number
 (separators _, -, . are handled) and sort on that after sorting on the
 primary channel number.

Ticket URL: <http://cvs.mythtv.org/trac/ticket/1930>
MythTV <http://www.mythtv.org/>

More information about the mythtv-commits mailing list