Sort apps by name in 'browse by rating' list
This commit is contained in:
committed by
Chris Morgan
parent
0ea7d306d8
commit
fb0c66b586
@@ -463,11 +463,14 @@ class Application {
|
|||||||
public static function getWithRating($sRating, $iOffset, $iItemsPerPage)
|
public static function getWithRating($sRating, $iOffset, $iItemsPerPage)
|
||||||
{
|
{
|
||||||
$aApps = array();
|
$aApps = array();
|
||||||
$sQuery = "SELECT DISTINCT appId
|
$sQuery = "SELECT DISTINCT appVersion.appId, appName
|
||||||
FROM appVersion
|
FROM appVersion, appFamily WHERE
|
||||||
WHERE rating = '?'
|
appVersion.appId = appFamily.appId
|
||||||
AND state = 'accepted'
|
AND
|
||||||
ORDER BY appId ASC LIMIT ?, ?";
|
rating = '?'
|
||||||
|
AND
|
||||||
|
appVersion.state = 'accepted'
|
||||||
|
ORDER BY appName ASC LIMIT ?, ?";
|
||||||
|
|
||||||
if($hResult = query_parameters($sQuery, $sRating, $iOffset, $iItemsPerPage))
|
if($hResult = query_parameters($sQuery, $sRating, $iOffset, $iItemsPerPage))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user