Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS 2010 sorting ALLOWED VALUES desc

Tags:

tfs-workitem

I'm using TFS 2010. I have a string field with a list of allowed values. When I view the work item the list is sorted alphabetically (the original list is not sorted alphabetically). Is there any way to display the vaule order as the same given in the work item template. Is there any way to change the sort order to desc?

I know I can write a custom control for this but I was wondering if there was any easier way.

thanks,

like image 858
user963491 Avatar asked Dec 18 '11 16:12

user963491


1 Answers

There is no way to sort a list of values (allowed, suggested, or even taken from a global list) in any order, but ascending alphabetically.

You do have two option though:

  1. Add an index before each item on the list. This index would be something like "1. Banana", "2. Apple", etc. It would be permanent and would appear in the display of the list, but it is the simplest solution, if it's good enough for you.
  2. You may create a custom control, that would appear as a drop down list, and would sort by a custom parameter that you can add to the work item type definition.

Hope this helps.

like image 160
Assaf Stone Avatar answered Sep 20 '22 00:09

Assaf Stone