rendered paste bodyIndex: includes/channels.php
===================================================================
--- includes/channels.php (revision 11628)
+++ includes/channels.php (working copy)
@@ -39,7 +39,7 @@
$sql .= ' channel.visible=1';
// Sort
$sql .= ' ORDER BY '
- .(sortby_channum ? '' : 'channel.callsign, ')
+ .'channel.callsign, '
.'(channel.channum + 0), channel.channum, channel.chanid'; // sort by channum as both int and string to grab subchannels
// Query
$sh = $db->query($sql);