Re: Liveuser_Admin: listing users alphabetically
| From: | Jeroen Houben | Date: | Tue, 06 Sep 2005 12:48:26 +0000 |
| Subject: | Re: Liveuser_Admin: listing users alphabetically | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-20807@lists.php.net to get a copy of this message | ||
Lukas Smith wrote:
Jeroen Houben wrote:Hmm. The following doesn't throw an error, but it doesn't work either. Changing DESC to ASC makes no difference.Hi, I'm trying to list my users in alphabetical order, but it throws me an error (see below). He're my code:this needs to be: $params['orders'] = array('auth_user_id' => $direction); where $direction is either 'ASC' or 'DESC'.$params = array(); $params['orders'] = array('auth_user_id');
$params = array();
$params['orders'] = array('auth_user_id' => 'DESC');
$users = $lu_admin->perm->getUsers($params);
Any ideas?
Jeroen