Sort applications that the user maintains alphabetically

This commit is contained in:
Chris Morgan
2005-08-25 02:26:18 +00:00
committed by WineHQ
parent 07801e8b9e
commit 82c3000190

View File

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