Update profile order in mod/directory

This commit is contained in:
Hypolite Petovan 2018-10-25 23:33:45 -04:00
parent c115141220
commit 79ad132ce6
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ function directory_content(App $a)
if ($alpha) {
$order = ' ORDER BY `name` ASC ';
} else {
$order = ' ORDER BY `updated` DESC, `id` DESC ';
$order = ' ORDER BY `filled_fields` DESC, `last_activity` DESC, `updated` DESC';
}
$r = q("SELECT * FROM `profile` WHERE `censored` = 0 AND `available` = 1 $sql_extra $order LIMIT %d , %d ",