Opened 18 years ago
Closed 18 years ago
#1930 closed defect (fixed)
mythweb channel list for atsc doesn't sort subchannels
Reported by: | Owned by: | xris | |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | mythweb | Version: | |
Severity: | low | Keywords: | |
Cc: | Ticket locked: | no |
Description
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.
patch for mythweb includes/channels.php to sort on atsc subchannel numbers