Sort categories by their name and applications by their name to make it easier
to locate applications alphabetically.
This commit is contained in:
@@ -28,7 +28,7 @@ class Category {
|
|||||||
*/
|
*/
|
||||||
$sQuery = "SELECT *
|
$sQuery = "SELECT *
|
||||||
FROM appCategory
|
FROM appCategory
|
||||||
WHERE catId = ".$iCatId;
|
WHERE catId = ".$iCatId." ORDER BY catName;";
|
||||||
if($hResult = query_appdb($sQuery))
|
if($hResult = query_appdb($sQuery))
|
||||||
{
|
{
|
||||||
$oRow = mysql_fetch_object($hResult);
|
$oRow = mysql_fetch_object($hResult);
|
||||||
@@ -45,7 +45,7 @@ class Category {
|
|||||||
$sQuery = "SELECT appId
|
$sQuery = "SELECT appId
|
||||||
FROM appFamily
|
FROM appFamily
|
||||||
WHERE catId = ".$iCatId."
|
WHERE catId = ".$iCatId."
|
||||||
AND queued = 'false'";
|
AND queued = 'false' ORDER BY appName";
|
||||||
if($hResult = query_appdb($sQuery))
|
if($hResult = query_appdb($sQuery))
|
||||||
{
|
{
|
||||||
while($oRow = mysql_fetch_object($hResult))
|
while($oRow = mysql_fetch_object($hResult))
|
||||||
@@ -59,7 +59,7 @@ class Category {
|
|||||||
*/
|
*/
|
||||||
$sQuery = "SELECT catId
|
$sQuery = "SELECT catId
|
||||||
FROM appCategory
|
FROM appCategory
|
||||||
WHERE catParent = ".$iCatId;
|
WHERE catParent = ".$iCatId." ORDER BY catName;";
|
||||||
if($hResult = query_appdb($sQuery))
|
if($hResult = query_appdb($sQuery))
|
||||||
{
|
{
|
||||||
while($oRow = mysql_fetch_object($hResult))
|
while($oRow = mysql_fetch_object($hResult))
|
||||||
|
|||||||
Reference in New Issue
Block a user