From 8d724145616b30794a94f20f43dd2b45c2741a6d Mon Sep 17 00:00:00 2001 From: azaozz Date: Tue, 6 Jan 2009 00:34:31 +0000 Subject: [PATCH] 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 --- wp-includes/category-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/category-template.php b/wp-includes/category-template.php index f06a236d84..5d2240d0ba 100644 --- a/wp-includes/category-template.php +++ b/wp-includes/category-template.php @@ -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 );