0

In my code, I am simply using SPList.Items which is returning all items (SPListItemCollection) with default sorting order (ascending order by Created date).

I know that I can use CAML Query or some other technique in my code to get the list items in required sort order but I don't want to make changes to my code. Is it possible to change the default order without making any changes to the existing code?

I am searching for an option like, just change a property of the List using SharePoint Manager and get the required sorting order when using SharePoint API (SPList.Items). Is there any such property available?

Thanks.

  • AFAIK, this is not possible, you will need to change the code. – Arsalan Adam Khatri Feb 9 '17 at 10:34
  • do you want to get data in descending order without making change in code? – love thakker Feb 9 '17 at 11:12
0

This is not possible. I would suggest to use the CAML query which you do not want to use.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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