Order link search results by name

This commit is contained in:
Nathan Gray 2011-06-10 14:20:47 +00:00
parent d7c7034771
commit 8abc20badf

View File

@ -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']) )