array_multisort

zdravim, mam kod

print_r($menu_zorad);

(vytlaci mi to

Array (
[0] => Array ( [0] => 1 [1] => O-nas [2] => O nas [3] => O nas [zorad] => 1 )
[1] => Array ( [0] => 2 [1] => Technologia [2] => Technologia [3] => Technologia [zorad] => 2 )
[2] => Array ( [0] => 3 [1] => Galeria-zdjêæ [2] => Galeria zdjêæ [3] => Galeria zdjêæ [zorad] => 3 )
[3] => Array ( [0] => 4 [1] => Galeria [2] => Galeria [3] => Galeria [zorad] => 4 )
[4] => Array ( [0] => 4 [1] => Cennik [2] => Cennik [3] => Cennik [zorad] => 4 )
[5] => Array ( [0] => 5 [1] => Kontakt [2] => Kontakt [3] => Kontakt [zorad] => 5 ) )

)

foreach($menu_zorad as $res)
$sortAux[] = $res['zorad'];

array_multisort($sortAux, SORT_ASC, $menu_zorad);


a hlasi mi to chybu

Warning: array_multisort() [function.array-multisort]: Array sizes are inconsistent

neviem v com je problem, ak by niekto vedel bol by som velmi rad. Dik ;)
uz som vyriesil.. problem ako vzdy bol v malickosti..<a href="mailto:petuliak@gmail.com?subject=array_multisort">Petuliak</a> napsal:
>
> zdravim, mam kod
>
> print_r($menu_zorad);
>
> (vytlaci mi to
>
> Array (
> [0] => Array ( [0] => 1 [1] => O-nas [2] => O nas [3] => O
> nas [zorad] => 1 )
> [1] => Array ( [0] => 2 [1] => Technologia [2] => Technologia
> [3] => Technologia [zorad] => 2 )
> [2] => Array ( [0] => 3 [1] => Galeria-zdjêæ [2] =>
> Galeria zdjêæ [3] => Galeria zdjêæ
> [zorad] => 3 )
> [3] => Array ( [0] => 4 [1] => Galeria [2] => Galeria [3] =>
> Galeria [zorad] => 4 )
> [4] => Array ( [0] => 4 [1] => Cennik [2] => Cennik [3] =>
> Cennik [zorad] => 4 )
> [5] => Array ( [0] => 5 [1] => Kontakt [2] => Kontakt [3] =>
> Kontakt [zorad] => 5 ) )
>
> )
>
> foreach($menu_zorad as $res)
> $sortAux[] = $res['zorad'];
>
> array_multisort($sortAux, SORT_ASC, $menu_zorad);
>
>
> a hlasi mi to chybu
>
> Warning: array_multisort() [function.array-multisort]: Array
> sizes are inconsistent
>
> neviem v com je problem, ak by niekto vedel bol by som velmi
> rad. Dik ;)