Hi jeff,
Two possibilities, try losing the double-quotes about each of the constants ...
$sortorder = ($_GET['order'] == "asc") ? SORT_ASC : SORT_DESC;
array_multisort($email, $sortorder, $result);
Alternatively ...
if($_GET['order'] == "asc"){
array_multisort($email, SORT_ASC, $result);
} else {
array_multisort($email, SORT_DESC; $result);
}
Paul 🙂