I have the following Sort Array:
$sortby = array(
"name" => "sort",
"level" => "sort",
"anon" => "sort",
"laston" => "sort",
"comment" => "sort",
);
I am calling the $SORTBY array in a function using XML and PHP:
function print_output()
{
global $TEAMS;
global $SCRIPT_NAME, $sortby;
I am passing the variable to sort by a URL - for example: <a href="${SCRIPT_NAME}?$sortby[level]=level&disp=flat">
The sort works flawlessly! My question is this: How...when I have it sorting by LEVEL - do I also make sure the NAMEs are listed alphabetically?
In MySQL it would be ORDERBY $level, $name - but I cannot seem to set this up properly.
Thanks for any help.