i'm still learning...i have two database tables
setting: id, uid, deptid
user : id, uid, name
i want the result to be sort ascending by name from user table
$result = $DB->query("SELECT s.*, u.* FROM ".$myDB->prefix("setting")." AS s LEFT JOIN ".$myDB->prefix("user")." AS u ON s.uid=u.uid ORDER BY u.name ASC");
please advice..Thank you