Update profile order in mod/directory
This commit is contained in:
parent
c115141220
commit
79ad132ce6
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ function directory_content(App $a)
|
||||||
if ($alpha) {
|
if ($alpha) {
|
||||||
$order = ' ORDER BY `name` ASC ';
|
$order = ' ORDER BY `name` ASC ';
|
||||||
} else {
|
} 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 ",
|
$r = q("SELECT * FROM `profile` WHERE `censored` = 0 AND `available` = 1 $sql_extra $order LIMIT %d , %d ",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue