From 8abc20badfe35e490a28e0b6fe241b1bf7da239a Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Fri, 10 Jun 2011 14:20:47 +0000 Subject: [PATCH] Order link search results by name --- resources/inc/class.resources_bo.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/inc/class.resources_bo.inc.php b/resources/inc/class.resources_bo.inc.php index 583dccfc1e..a26124f366 100755 --- a/resources/inc/class.resources_bo.inc.php +++ b/resources/inc/class.resources_bo.inc.php @@ -398,7 +398,7 @@ class resources_bo if($options['start'] || $options['num_rows']) { $limit = array($options['start'], $options['num_rows']); } - $data = $this->so->search($criteria,$only_keys,$order_by='',$extra_cols='',$wildcard='%',$empty,$op='OR',$limit,$filter); + $data = $this->so->search($criteria,$only_keys,$order_by='name',$extra_cols='',$wildcard='%',$empty,$op='OR',$limit,$filter); // maybe we need to check disponibility of the searched resources in the calendar if $pattern ['exec'] contains some extra args $show_conflict=False; if (is_array($pattern) && isset($pattern['exec']) )