diff --git a/admin/inc/class.admin_ui.inc.php b/admin/inc/class.admin_ui.inc.php
index 321871ac41..682fdacf54 100644
--- a/admin/inc/class.admin_ui.inc.php
+++ b/admin/inc/class.admin_ui.inc.php
@@ -355,6 +355,7 @@ class admin_ui
{
$groups = $GLOBALS['egw']->accounts->search(array(
'type' => 'groups',
+ 'query' => $query['search'],
'order' => $query['order'],
'sort' => $query['sort'],
'start' => (int)$query['start'],
diff --git a/admin/templates/default/index.xet b/admin/templates/default/index.xet
index 4c6efb3d75..f567b5b270 100644
--- a/admin/templates/default/index.xet
+++ b/admin/templates/default/index.xet
@@ -53,7 +53,6 @@
-
@@ -61,13 +60,9 @@
-
-
-
-
-
-
-
+
+
+
@@ -77,10 +72,6 @@
-
-
-
-
diff --git a/api/src/Accounts/Sql.php b/api/src/Accounts/Sql.php
index 218ae7f31b..43b5a3e456 100644
--- a/api/src/Accounts/Sql.php
+++ b/api/src/Accounts/Sql.php
@@ -412,7 +412,8 @@ class Sql
Api\Accounts::format_username('account_lid','account_firstname','account_lastname'))), $param['order']);
}
$order = str_replace(array_keys($order2contact),array_values($order2contact),$param['order']);
- // allways add 'account_lid', as it is only valid one for groups
+
+ // allways add 'account_lid'
if (strpos($order, 'account_lid') === false)
{
$order .= ($order?',':'').'account_lid';