谁能帮我解决这个 CAML 查询?当我将Ascending
属性从TRUE
to翻转FALSE
(也尝试过True
and False
)时,它不会重新排序结果集。
CAML 的其余部分是正确的,它是由工具生成的,并且正在返回适当的结果。
<Where>
<And>
<And>
<Eq>
<FieldRef Name="Branch"/>
<Value Type="Text">Camp 1</Value>
</Eq>
<Eq>
<FieldRef Name="Type"/>
<Value Type="Choice">Day</Value>
</Eq>
</And>
<Geq>
<FieldRef Name="StartDateTime"/>
<Value Type="DateTime">2009-01-05T00:00:00Z</Value>
</Geq>
</And>
<OrderBy>
<FieldRef Ascending="TRUE" Name="Title" />
</OrderBy>
</Where>