From ff6ccef3bf83ef5baaba0f496ffd3273d750269e Mon Sep 17 00:00:00 2001 From: Tim Clark <eclipse@sucs,org> Date: Thu, 12 Jun 2008 14:39:02 +0000 Subject: [PATCH] Fixes the (not)sorting problem with the junk list --- components/junk.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/junk.php b/components/junk.php index 28aa99a..0bdf488 100644 --- a/components/junk.php +++ b/components/junk.php @@ -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); -- GitLab