Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Sort Groups Alphabetically by default (BP 1.2)

I forgot to check for just members/groups so here’s the corrected version…

`
function sort_alpha_by_default( $qs ) {
global $bp;
if (!$qs && ( $bp->current_component == BP_GROUPS_SLUG || $bp->current_component == BP_MEMBERS_SLUG ) )
$qs = ‘type=alphabetical&action=alphabetical’;
return $qs;
}
add_filter( ‘bp_dtheme_ajax_querystring’, ‘sort_alpha_by_default’ );
`

Skip to toolbar