summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
authorCallan Barrett <wizzomafizzo@gmail.com>2008-09-29 00:07:33 +0800
committerLoui Chang <louipc.ist@gmail.com>2008-09-28 13:17:09 -0400
commitdf39cded09cb2a1ed9ee2f11207b28ccbb24fd51 (patch)
tree88f5f761d7b67fb6be3dbbac2cb6aacc104b49f9 /web/lib
parent5c3f01909301f641f57b2ffe8b59609de6be2256 (diff)
downloadaurweb-df39cded09cb2a1ed9ee2f11207b28ccbb24fd51.tar.xz
Sort required by list in package details page.
This closes FS#11420. Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com> Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/pkgfuncs.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc
index 484e5a6..5ba56da 100644
--- a/web/lib/pkgfuncs.inc
+++ b/web/lib/pkgfuncs.inc
@@ -128,6 +128,7 @@ function package_required($pkgid=0) {
$q.= "WHERE PackageDepends.PackageID = Packages.ID ";
$q.= "AND PackageDepends.DepPkgID = ";
$q.= mysql_real_escape_string($pkgid);
+ $q.= " ORDER BY Name";
$result = db_query($q, $dbh);
if (!$result) {return array();}
while ($row = mysql_fetch_row($result)) {