Contacts oder by last mod date null last.

This commit is contained in:
markjcrane 2015-10-20 01:53:23 -06:00
parent 7a776fadb8
commit 588e4ebabc
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ else {
$sql .= "order by ".$order_by." ".$order." ";
}
else {
$sql .= "order by last_mod_date desc ";
$sql .= "order by case when last_mod_date is null then 1 else 0, last_mod_date desc ";
}
$sql .= "limit ".$rows_per_page." offset ".$offset." ";
$prep_statement = $db->prepare(check_sql($sql));