Sorting of requirement table according to element order? [message #1559719] |
Mon, 12 January 2015 01:46  |
Eclipse User |
|
|
|
Is it possible to have a requirements (or any other table) to be sorted in the same order the elements are listed in the Model Explorer?
I've tried Alt-Right click to toggle between ordering, but I seem not to achieve what I need/want that way.
[EDIT]: Wait a minute, if I rearrange the requirement elements in the Model Explorer (by moving one element to another position), the table is resorted to show the elements ordered in the Model Explorer order. It appears that I need to do this each time I open the table. Bug or feature?
Also, sorting by the requirements id appears to not be sorting strings appropriately, for instance 1.20 follows 1.2, not 1.19, but perhaps I should add that one to the Bugzilla unless it is something already in the workings?
Regards,
Tomas Sandkvist
[Updated on: Mon, 12 January 2015 01:51] by Moderator
|
|
|
Re: Sorting of requirement table according to element order? [message #1559921 is a reply to message #1559719] |
Mon, 12 January 2015 04:25  |
Eclipse User |
|
|
|
Hi Tomas,
The expected behavior is:
- Default order: Model order (i.e. equivalent to ModelExplorer order, unless you used the A-Z sort in the ModelExplorer)
- Sort by ID: Naive String-Comparison sort, i.e. numbers are sorted alphabetically
You can restore the default sort by clicking several times on the Sort column (Alt + Click to switch between "Sort A-Z", "Sort Z-A", "Don't sort").
The only issue I see is the naive implementation of the String comparison, which doesn't take complete numbers into account.
Camille
|
|
|
Powered by
FUDForum. Page generated in 0.03624 seconds