Sign up ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

If we have

SPAuditQuery auditQuery = new SPAuditQuery(context.Site);


auditQuery.RowLimit = (uint)numberOfEvents;

It will return the records in a descending order, I can then sort that results but if the user set a RowLimit, start and end Range Date, there's a big change that I will just get the results from the startRange and I'm insterested in show the most recent audits.

share|improve this question
What is your question exactly? –  RJ Cuthbertson Jan 24 '13 at 18:53
when you create a SPAuditQuery, you can set options like RowLimit, SetRangeStart, SetRangeEnd and so on, before calling the GetEntries Method (context.Site.Audit.GetEntries(auditQuery);), the query results (entries) are sorted by Ocurred date Ascending, my question is if there's a way to change that. –  rob.alarcon Jan 24 '13 at 20:41

Your Answer


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

Browse other questions tagged or ask your own question.