Sort a List / Document Library view using URL

February 29th, 2008 | Categories: JavaScript, SharePoint

This one’s an add-on to the previous post. Even though it’s quite quick to sort items in a List / Document Library view by clicking on the column title, you can do this also by using URL. Just add parameters

?SortField=[Field Name]&SortDir=[Asc / Desc]

Example: to sort by Title descending, type ?SortField=Title&SortDir=Desc

When is it more worth to use URL instead of clicking? When you…

… like typing urls 🙂
… need to use this in a script
… need to make direct links manually
… don’t want to create an extra view just for sorting

Oznake ponudnika Technorati: