fintan sheehan
|
Friday 26 September 2008 1:12:36 am
Hello,
I am trying to sort by attribute (datetime) below but sort not working. Is search sort_by limited to id and name in 3.10 ? Thanks Fintan {if eq($search_sub_tree[0],""))}
{set search=fetch(content,search,
hash(text,$search_text_keyword,
section_id,$search_section_id,
class_id,$search_contentclass_id,
class_attribute_id,$search_contentclass_attribute_id,
offset,$view_parameters.offset,
'sort_by', array('attribute', true(), '297' ),
limit,$page_limit))} {else}
{set search=fetch(content,search,
hash(text,$search_text_keyword,
section_id,$search_section_id,
subtree_array,$search_sub_tree,
class_id,$search_contentclass_id,
class_attribute_id,$search_contentclass_attribute_id,
offset,$view_parameters.offset,
'sort_by', array('attribute', true(), '297' ),
limit,$page_limit))} {/if} {set search_result=$search['SearchResult']}
{set stop_word_array=$search['StopWordArray']} {set search_data=$search}
|