SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use SharePoint Server through web-services.
To get View schema I use GetView method of Views.asmx. But it returns only FieldRefs with Names, without isAscending.
How would I know if View's field has sort direction?

share|improve this question

You can find that actually in the 2nd part of the returned Xml, but only when using the GetViewHtml method, because that is part of the Query (search for the OrderBy), see here You could use Linq to Xml by example to retrieve the QUERY element.

share|improve this answer
By experimenting with GetView I've found out that GetView returns Ascending property but: only if it's FALSE (for SP Server 2010) and always for Office365 (SP Server Online). Thanks a lot for pointing out to GetViewHtml method! – surlac Jan 21 '13 at 11:13
up vote 0 down vote accepted

GetView returns Ascending property:
1) for SP Server 2010: only if it set to FALSE;
2) for Office365: always.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.