Thanks v-much. PHP was the solution.
Exploring your suggestions led me to discover mysql_field_name($result, x)
And the final solution.
...
$query="SELECT art, ict, history FROM results WHERE name='$name'";
...
$results_array=array(mysql_result($result,0,art),mysql_result($result,0,ict),mysql_result($result,0,history));
$column_names_array=array(mysql_field_name($result, 0),mysql_field_name($result, 1),mysql_field_name($result, 2));
array_multisort($results_array,$column_names_array);
print_r($column_names_array);
Thanks so much again.
John