Hot answers tagged sorting
3
Do you use Publishing features? Normally you can changer order in Quick Launch settins from Site settings, Look and Feel column. You can find step by step guide here http://support.sherweb.com/Faqs/Show/how-to-change-the-order-of-the-items-in-the-quick-launch-of-sharepoint-sharepoint-2007 for example.
2
I think the problem is that you on post backs do not create the ObjectDataSource object and configure the SPGridView object. Refactor your code to do this in the CreateChildControls() method that you must override from the base class. Also call grid.DataBind() in the PreRender phase and not in the Render phase.
Here is another useful article on the ...
2
Your data is formatted as x.y.z, and you need 3 ordering rules: x ascending, then y ascending, then z ascending.
You could use 3 columns to store x, y and z. You would apply the sorting criteria, and for rendering you would use a calculated column: =x+"."+y+"."+z
If it's too many columns to handle, then you would have to use the 00.00.000 format suggested ...
2
You can write values as 00.00.000 (eg. 01.11.345). Not the best solution but the easiest one.
More complex one is to write your own Custom Field Type.
Also take a look at SharePoint MaskedEdit Field Control and Input-Masking in SharePoint Forms. Not exactly what are you looking for but just as idea (never tested it myself).
2
You can configure a view with the sort you want, and use that as your RSS feed. Append:
?View=<View ID>
You can also get the full URL of the view's RSS by clicking the little RSS icon next to the view's Name in the Edit View page.
I'm not sure there is a way to sort the default feed, it doesn't seem to be using the default view.
2
Yes, you will need to implement a custom solution to accomplish this. The OOTB results Web part is unfortunately hard-coded for sorting by relevance or modified date. This limitation is first removed with SharePoint 2013 Search where managed properties can now be registered as sortable.
In SharePoint 2007, you can implement custom sorting using the ...
2
If publishing feature is enabled or you created site using publishing template, http://office.microsoft.com/en-us/sharepoint-server-help/customize-navigation-links-on-the-quick-launch-HA010255192.aspx#BM10
If not, you have to use code to sort it...Example here
...
2
If ArticlePriority is a choice column then null values will be sorted before the ones with values.
One solution could be to create a hidden calculated column with the formular something like =IF(ArticlePriority=0,9999,ArticlePriority) and then order by that column
1
The sorting of Lookup columns (and a SPFieldUser is just a lookup column into the User Information List) depends on the LookupField of the lookup column.
If you define your User field to display as one of the Name columns then the sorting of your Query should by the display name of the user.
1
ok, im presuming that you are creating the list using xml and not querying in .cs?
whats the full code and are you doing it like this?
<Query>
<OrderBy>
<FieldRef Name="SomeUserField"/>
</OrderBy>
</Query>
You dont need to add in ascending = true as by default it is ascending. You only need to use it if you ...
1
You can only manually (NO OOTB) change the order in which headings or links appear on the Quick Launch, or else you can use some jQuery customizations to do such thing:
Site actions -> Site settings.
In the Look and Feel column, click Quick launch.
Click Change Order.
Click the options in the lists to change the order in which the
headings and links are ...
1
Nothing out of the box. You could possibly do this through jQuery though or some type of timer job that will detect navigation changes and reorder them for you. I don't think there is an event to key on so it would probably be a polling type thing. Best performance would be to create a SPChangeQuery to determine if there were any navigation changes.
...
1
Since blogs in SharePoint are sequenced in chronological order of their posting, to change the order requires time travel. Actually, you can edit the time field in the publishing properties for the post. Simply apply new publishing times to all of the posts in the order that you want them to appear.
To perform this task, go to the Post list (Click the ...
1
If you set the users up in a list instead of just using the out of the box security groups, you have more control. You could create a column that will state their place in the sequence (1, 2, 3)Then you could modify your approval workflow using SharePoint Designer and have it step through in the order in which you specify using lookups to that list.
Only top voted, non community-wiki answers of a minimum length are eligible
