So this function works great for sorting array or object by 1 value
function sort( $a, $b )
{
if( $a['1'] == $b['1'] ){ return 0 ; }
return ($a['1'] < $b['1']) ? -1 : 1;
}
usort($myArray,'sort');
But I would like it to sort by value 1 primary and by value 2 second, if this is possible with this function, or is it only doable with a custom function?