> on a whim, I tried
>       uasort($this->modules[$group], '$this->_ary_sort()');

hi all,

for those of you interested:

uasort($this->modules[$group], array(&$this,'_ary_sort'));

note the &$this... this is a very good point, if you use $this, a new
instance of your class is created just to handle to sort :)

elsewhere in the same class:

    function _ary_sort($a,$b) {
        return $a['init'] - $b['init'];
    }


is my 'final' code (thanks markus).


_alex



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to