Here is my Multi Sort Code.
But, How can i do this for individual coloumns
What i have done so far is
PHP Code :
<?php
$a1=array("Cat","Alpha","two");
$a1=array("Cat","Beta","two");
$a1=array("Pluto","Beta","two");
$a1=array("Pluto","Alpha","two");
array_multisort($a1[0], SORT_ASC, SORT_STRING, $a1[1], SORT_NUMERIC, SORT_DESC);
$json[] = $a1;
$final=array("response"=>$a1);
echo json_encode($final);
?>
It will display as
Array ( [0] => Cat [1] => Dog [2] => zb ) Array ( [0] => Missy [1] => Pluto [2] => Fido )
But , I want to display the
First Coloumn of $a1 as Asc, then Second Coloumn of $a1 as Desc,
So that the result should be
Col A Col B, Col C
Cat, Alpha two
Cat, Beta two
Pluto, Alpha two
Plugo, Beta two
How can i do this ?