[jonah] Sort channels

Patrick Brossier Patrick.Brossier at mgm.fr
Sat Mar 1 19:31:40 PST 2003


In channels.php:

function _channelSort($one ,$two) {
    global $prefs;
    return Jonah::_channelSort($one ,$two ,$prefs->getValue('sortby'), 
$prefs->getValue('sortdir'));
}

you call Jonah::_channelSort with 4 parameters.

in lib/Jonah.php

   function _channelSort($one ,$two)
    {
        return strcasecmp($one['channel']['name'], 
$two['channel']['name']);
    }

_channelSort has only 2 parameters and sorts channels always by name.


More information about the jonah mailing list