prova a sostituire così...

array_multisort($kk,SORT_DESC,SORT_NUMERIC, $filename,SORT_DESC,SORT_STRING, $data);