Sort TFS 2010 ALLOWED VALUES desc

I am using TFS 2010. I have a string field with a list of valid values. When I look at a work item, the list is sorted alphabetically (the original list is not sorted alphabetically). Is there a way to display the order of the voules as the same as in the work item template. Is there a way to change the sort order for desc?

I know that I can write my own control for this, but I was wondering if there is an easier way.

thanks,

+6
source share
1 answer

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

You have two options:

  • Add an index in front of each item in the list. This index will be something like “1. Banana,” “2. Apple,” etc. It will be permanent and will appear on the list display, but this is the simplest solution, if it is enough for you.
  • You can create a custom control that will appear as a drop-down list and sort by a custom parameter that you can add to the definition .

Hope this helps.

+7
source

Source: https://habr.com/ru/post/904030/


All Articles