How to order users alphabetically by their last name?

Why don’t use built-in functionality of PHP?

Put the following line right before the foreach:

usort($members, create_function('$a, $b', 'return strnatcasecmp($a->last_name, $b->last_name);'));

References:

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)