$tempArr = $sortedArr = array();
foreach ($myArr as $k => $v) $tempArr[$k] = count($v);
asort($tempArr);
foreach ($tempArr as $k => $v) $sortedArr = $myArr[$k];
Note that this will break if any of the array values are not themselves arrays, you may want to add an is_array()
check somewhere...