Order appData entries by the application name, otherwise the order is based on when the

application was added to the database and this grouping doesn't work well for screenshots.
This commit is contained in:
Chris Morgan
2007-08-08 00:55:27 +00:00
committed by WineHQ
parent 242849cc04
commit 218beb0f83

View File

@@ -366,7 +366,8 @@ class appData
AND AND
appData.queued = '?' appData.queued = '?'
AND AND
appData.type = '?'"; appData.type = '?'
ORDER BY appFamily.appName";
if(!$iRows && !$iStart) if(!$iRows && !$iStart)
{ {
$hResult = query_parameters($sQuery, $_SESSION['current']->iUserId, $hResult = query_parameters($sQuery, $_SESSION['current']->iUserId,
@@ -386,7 +387,9 @@ class appData
if($iStart || $iRows) if($iStart || $iRows)
$sLimit = " LIMIT ?,?"; $sLimit = " LIMIT ?,?";
$sQuery = "(SELECT DISTINCT appData.* FROM appData, $sQuery =
"(
SELECT DISTINCT appData.* FROM appData,
appFamily, appVersion WHERE appFamily, appVersion WHERE
appFamily.appId = appVersion.appId appFamily.appId = appVersion.appId
AND AND
@@ -400,7 +403,9 @@ class appData
AND AND
appData.queued = '?' appData.queued = '?'
AND AND
appData.type = '?'$sLimit) UNION appData.type = '?' ORDER BY appFamily.appName $sLimit
)
UNION
( (
SELECT DISTINCT appData.* FROM appData, SELECT DISTINCT appData.* FROM appData,
appFamily, appVersion WHERE appFamily, appVersion WHERE
@@ -416,7 +421,8 @@ class appData
AND AND
appData.queued = '?' appData.queued = '?'
AND AND
appData.type = '?'$sLimit)"; appData.type = '?' ORDER BY appFamily.appName $sLimit
)";
if(!$iRows && !$iStart) if(!$iRows && !$iStart)
{ {
$hResult = query_parameters($sQuery, $bQueued ? "true" : "false", $sType, $hResult = query_parameters($sQuery, $bQueued ? "true" : "false", $sType,