sort by date in caml query

Posted by AB on Stack Overflow See other posts from Stack Overflow or by AB
Published on 2010-03-31T04:28:44Z Indexed on 2010/03/31 4:33 UTC
Read the original article Hit count: 583

Filed under:

I want to sort my list items by date:

I m using

<OrderBy><FieldRef Name='SortDate' Ascending='True'/></Order By>

but its giving me results randomly.Is it possible to sort by date in CAML if not then if there is any other way to retrieve list items sorted on the basis of date....

© Stack Overflow or respective owner

Related posts about sharepoint