files to edit
/templates/base/scripts BxBaseBrowse.php
around line ~ 686 ~ find this
// select sorting parameters ;
$sSortParam = '`Profiles`.`DateLastLogin` DESC';
if ( isset($this -> aDisplaySettings['sort']) ) {
switch($this -> aDisplaySettings['sort']) {
case 'activity' :
$sSortParam = ' `Profiles`.`DateLastLogin` DESC';
break;
case 'date_reg' :
$sSortParam = ' `Profiles`.`DateReg` DESC';
break;
case 'rate' :
$sSortParam = ' `sys_profile_rating`.`pr_rating_sum` DESC';
break;
default :
$sSortParam = ' `Profiles`.`DateLastLogin` DESC';
$this -> aDisplaySettings['sort'] = 'activity';
break;
}
} else
$this -> aDisplaySettings['sort'] = 'activity';
and change it to
// select sorting parameters ;
$sSortParam = '`Profiles`.`DateLastLogin` DESC';
if ( isset($this -> aDisplaySettings['sort']) ) {
switch($this -> aDisplaySettings['sort']) {
case 'activity' :
$sSortParam = ' `Profiles`.`DateLastLogin` DESC';
break;
case 'date_reg' :
$sSortParam = ' `Profiles`.`DateReg` DESC';
break;
case 'rate' :
$sSortParam = ' `sys_profile_rating`.`pr_rating_sum` DESC';
break;
case 'rand' :
$sSortParam = ' `Profiles`.`Couple` DESC, RAND()';
break;
default :
$sSortParam = ' `Profiles`.`Couple` DESC, RAND()';
$this -> aDisplaySettings['sort'] = 'rand';
break;
}
} else
$this -> aDisplaySettings['sort'] = 'activity';
then around line ~826~ find this
$aSortingParam = array
(
'activity' => _t( '_Latest activity' ),
'date_reg' => _t( '_FieldCaption_DateReg_View' ),
'rate' => _t( '_Rate' ),
);
and change to
$aSortingParam = array
(
'activity' => _t( '_Latest activity' ),
'date_reg' => _t( '_FieldCaption_DateReg_View' ),
'rate' => _t( '_Rate' ),
'rand' => _t( '_Random'),
);
Tested on 7.0.3 & 7.0.4
