Ticket #100: chanlist_sort.diff
File chanlist_sort.diff, 974 bytes (added by , 18 years ago) |
---|
-
config/conf.php
72 72 // Prefer channum over callsign? 73 73 define('prefer_channum', true); 74 74 75 // Sort channel list by channel nuber or by callsign? 76 define('sortby_channum', true); 77 75 78 // The number of time slots to display in the channel listing 76 79 define('num_time_slots', 36); 77 80 -
includes/channels.php
32 32 $sql = "SELECT * FROM channel"; 33 33 // Group and sort 34 34 $sql .= ' GROUP BY channum, callsign ORDER BY ' 35 .( prefer_channum ? '' : 'callsign, ')35 .(sortby_channum ? '' : 'callsign, ') 36 36 .'(channum + 0), chanid'; 37 37 // Query 38 38 $result = mysql_query($sql)