Skip to content
Snippets Groups Projects
Commit ff6ccef3 authored by Tim Clark's avatar Tim Clark
Browse files

Fixes the (not)sorting problem with the junk list

parent 1a4ff458
No related branches found
No related tags found
No related merge requests found
......@@ -120,10 +120,10 @@ if ($session->loggedin && $admin && (isset($_REQUEST['update']) || isset($_REQUE
if ($mode == 'list'){
// Get junk from database, and give admin the full list
if ($admin == true){
$junk = $DB->GetAll("SELECT * FROM inventory ORDER BY category");
$junk = $DB->GetAll("SELECT * FROM inventory ORDER BY category, title, id");
}
else{
$junk = $DB->GetAll("SELECT * FROM inventory WHERE status = 'junk' ORDER BY category");
$junk = $DB->GetAll("SELECT * FROM inventory WHERE status = 'junk' ORDER BY category, title, id");
}
$smarty->assign("junk", $junk);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment