From 79ad132ce6ff82a2caf89f95b13d71f7429ff3cb Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 25 Oct 2018 23:33:45 -0400 Subject: [PATCH] Update profile order in mod/directory --- mod/directory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/directory.php b/mod/directory.php index c444d8a5..b9d36d31 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -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 ",