Sort categories by their name and applications by their name to make it easier

to locate applications alphabetically.
This commit is contained in:
Chris Morgan
2005-06-04 03:04:45 +00:00
committed by WineHQ
parent 5682efdf2b
commit e021ff434d

View File

@@ -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))