How to order in a highlighted content using CAML?

Copper Contributor

Hello

 

I am struggling to sort the order of the pages library on a site.

I am using CAML query.

Here is my query :

<View>
<Query>
<Where>
<Eq>
<FieldRef Name="ClientPage"></FieldRef>
<Value Type="Integer">1</Value>
</Eq>
</Where>
<OrderBy Override="TRUE" UseIndexForOrderBy="FALSE">
<FieldRef Name="Name" Ascending= "TRUE" />
</OrderBy>
</Query>
</View>

 

Everytime I add a page in appears not in ascending order. It appears at the end of the results.

Where am I going wrong ?

 

Thanking you in advance.

 

Thank

Priya

0 Replies