i there,
assuming i've got a multidimentional array called "parsedList" from a "|" delimited file obtained like that :
$toList=file($file);
$actualNum=count($toList);
$parsedList=array();
for ($i = 0; $i < $actualNum; $i++) {
$pushList=split("|",$toList[$i]);
array_push($parsedList,$pushList);
}
it gives something like that :
2|blabla|red
1|hawow|blue
0|yeep|orange
what is the most efficient way to numericaly sort it, assuming the first column is numeric but the array is not associativ ?
And second : when you've got a not-associativ array (like the exemple before), is there a method to consider one specific column as the key to use a KSORT (for exemple) ?
thanks in advance helping a beginner