hello...

i have this array.

$idratings[]=array($post->ID=>$caticons_ratings);
output:

Array ( [0] => Array ( [173] => 8 ) [1] => Array ( [170] => 9 ) [2] => Array ( [165] => 10 ) [3] => Array ( [161] => 6 ) [4] => Array ( [153] => 8 ) [5] => Array ( [148] => 8 ) )

but i want to sort this array by $caticons_ratings. how to do plese help me.

thnks.

Member Avatar for diafol

have a look at multisort in php manual

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.