Fix ASC/DESC tag ordering by count, props mrmist, fixes #8609 for trunk

git-svn-id: http://svn.automattic.com/wordpress/trunk@10316 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2009-01-06 00:34:31 +00:00
parent 831a69f318
commit 8d72414561

View File

@ -654,7 +654,7 @@ function wp_generate_tag_cloud( $tags, $args = '' ) {
if ( 'name' == $orderby )
uasort( $tags, create_function('$a, $b', 'return strnatcasecmp($a->name, $b->name);') );
else
uasort( $tags, create_function('$a, $b', 'return ($a->count < $b->count);') );
uasort( $tags, create_function('$a, $b', 'return ($a->count > $b->count);') );
if ( 'DESC' == $order )
$tags = array_reverse( $tags, true );