Helper for mod_users_latest
Get users sorted by activation date
Références $db, $groups, $params, $query, et $user.