bb_sort_tag_heat_map

The BuddyPress bb sort tag heat map function.

Description

bb_sort_tag_heat_map( (number) &$tag_counts ); 

Parameters (1)

0. $tag_counts (number) => &$tag_counts
The tag counts.

Usage

  1. if ( !function_exists( 'bb_sort_tag_heat_map' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/functions.bb-template.php'; 
  3.  
  4. // The tag counts. 
  5. $tag_counts = &$tag_counts; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bb_sort_tag_heat_map($tag_counts); 
  9.  

Defined (1)

The function is defined in the following location(s).

/bp-forums/bbpress/bb-includes/functions.bb-template.php  
  1. function bb_sort_tag_heat_map( &$tag_counts ) { 
  2. uksort($tag_counts, 'strnatcasecmp');