sort by question

Hi,

I'm trying to first sort by field a asc then by field b desc.  with a command like:  "sort by: a asc sort by: b desc"

what seems to happen tho is it sorts both asc - the first sort order mentioned.  If for example I switch it to "sort by: a desc sort by: b asc" both are sorted desc.

Am I just specifying the command wrong or is this a bug?

Thanks,
Jerry

5 comments
Comment actions Permalink

Hi jerry,

what types of fields you sort? Can you reproduce it on youtrack.jetbrains.net?

0
Comment actions Permalink

one was a date field and the other either numeric or text.  Should it matter?  I will try to to repro on youtrack.jetbrains.net and include the search command here.

0
Comment actions Permalink

it did NOT repro on the jetbrains youtrack.  this sort for example worked correctly:

sort by:Assignee asc sort by:{issue id} desc

Let me get more details for our issue...

0
Comment actions Permalink

Ok, this might be related to another question / issue I have.  One of our PMs created the project that this sort is for and he created a bunch of the fields as type "state[1]".  The sort we're trying to do is this:

sort by: {Due date} asc sort by: {Campaign Size} desc

Due Date is a date field but Campaign Size is a state[1] type field.

So could that be the issue?

What happens is no matter what I specify after {Campaign Size}, (asc or desc) it always sorts by asc (or whatever I've specified as the sort order for the first sort field).

So a second question is this:

Can I change the type of a field (a bunch of fields actually) from state to enum for a in use project?  We have a bunch of records already w/ lots of comments, etc.  I see that I can't do it thru the UI but maybe there's another way?

Thanks for your help,

Jerry

0
Comment actions Permalink

Jerry,

Alexander anwered on 2th question in the other thread.

The first question look like a bug, I created issue http://youtrack.jetbrains.net/issue/JT-11457,  feel free to watch and vote.

0

Please sign in to leave a comment.