[vhffs-dev] [1302] Alphabetic sort on groupsearch

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1302
Author:   beuss
Date:     2008-10-31 08:11:35 +0100 (Fri, 31 Oct 2008)

Log Message:
-----------
Alphabetic sort on groupsearch

Modified Paths:
--------------
    branches/vhffs-design/vhffs-api/src/Vhffs/Panel/Group.pm


Modified: branches/vhffs-design/vhffs-api/src/Vhffs/Panel/Group.pm
===================================================================
--- branches/vhffs-design/vhffs-api/src/Vhffs/Panel/Group.pm	2008-10-31 07:09:05 UTC (rev 1301)
+++ branches/vhffs-design/vhffs-api/src/Vhffs/Panel/Group.pm	2008-10-31 07:11:35 UTC (rev 1302)
@@ -153,7 +153,7 @@
 	$limit .= ' OFFSET '.($start * 10) if(defined $start);
 	
 	my $dbh = $main->get_db_object();
-	my $sth = $dbh->prepare('SELECT g.gid, g.groupname, g.realname, o.description, owner.username AS owner_name'.$sql.$limit);
+	my $sth = $dbh->prepare('SELECT g.gid, g.groupname, g.realname, o.description, owner.username AS owner_name'.$sql.' ORDER BY groupname '.$limit);
 	
 	return undef unless ( $sth->execute(@params) );
 	


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/