From e021ff434d22f1317241a0c0ba08512af2a3d726 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Sat, 4 Jun 2005 03:04:45 +0000 Subject: [PATCH] Sort categories by their name and applications by their name to make it easier to locate applications alphabetically. --- include/category.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/category.php b/include/category.php index 2ec41c2..4a206d4 100644 --- a/include/category.php +++ b/include/category.php @@ -28,7 +28,7 @@ class Category { */ $sQuery = "SELECT * FROM appCategory - WHERE catId = ".$iCatId; + WHERE catId = ".$iCatId." ORDER BY catName;"; if($hResult = query_appdb($sQuery)) { $oRow = mysql_fetch_object($hResult); @@ -45,7 +45,7 @@ class Category { $sQuery = "SELECT appId FROM appFamily WHERE catId = ".$iCatId." - AND queued = 'false'"; + AND queued = 'false' ORDER BY appName"; if($hResult = query_appdb($sQuery)) { while($oRow = mysql_fetch_object($hResult)) @@ -59,7 +59,7 @@ class Category { */ $sQuery = "SELECT catId FROM appCategory - WHERE catParent = ".$iCatId; + WHERE catParent = ".$iCatId." ORDER BY catName;"; if($hResult = query_appdb($sQuery)) { while($oRow = mysql_fetch_object($hResult))