From 82c30001909fca9a29eb067e6d630db2c2319b2e Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Thu, 25 Aug 2005 02:26:18 +0000 Subject: [PATCH] Sort applications that the user maintains alphabetically --- include/maintainer.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/maintainer.php b/include/maintainer.php index 7792c16..9a10fb1 100644 --- a/include/maintainer.php +++ b/include/maintainer.php @@ -8,8 +8,10 @@ */ function getAppsFromUserId($userId) { - $result = query_appdb("SELECT appId, versionId, superMaintainer FROM ". - "appMaintainers WHERE userId = '$userId'"); + /* retrieve the list of application and order them by application name */ + $result = query_appdb("SELECT appMaintainers.appId, versionId, superMaintainer, appName FROM ". + "appFamily, appMaintainers WHERE appFamily.appId = appMaintainers.appId ". + "AND userId = '$userId' ORDER BY appName"); if(!$result || mysql_num_rows($result) == 0) return;