Sort logins marked important always first

This commit is contained in:
johnnyq 2023-07-07 16:50:22 -04:00
parent c916e249bd
commit 473cf14610
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ $sql = mysqli_query(
"SELECT SQL_CALC_FOUND_ROWS * FROM logins
WHERE login_client_id = $client_id
AND (login_name LIKE '%$q%' OR login_description LIKE '%$q%' OR login_uri LIKE '%$q%')
ORDER BY $sb $o LIMIT $record_from, $record_to"
ORDER BY login_important DESC, $sb $o LIMIT $record_from, $record_to"
);
$num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));