From 9eda5b7f0655685a50a72a1cc5a420ba9038ff60 Mon Sep 17 00:00:00 2001 From: Andrew Ozz 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: https://develop.svn.wordpress.org/trunk@10316 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 );