Usually, I'll put a second parameter in there to say how to sort. Top of the page:
if(isset($_GET['sorter'])) {
$way = "DESC";
$set = 0;
}
else {
$way = "ASC";
$set = 1;
}
The $way you put in your query
$data = mysql_query( "SELECT clientname, phone, email FROM clients" . $orderQuery." ".$way);
The $set is to see if it should stick the variable in the URL to get it to change next click around
<a href="viewClients.php?sort=3<?=($set==1)?"&sorter=1":""?>">Client</a>
HTH