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

git-svn-id: https://develop.svn.wordpress.org/trunk@10316 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2009-01-06 00:34:31 +00:00
parent 2719acb8ed
commit 9eda5b7f06
1 changed files with 1 additions and 1 deletions

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 );