Russell Jarvis
Posts: 0
Joined: Wed Jul 16, 2014 8:18 am

Conditionally sort query results..

I'd like to sort the results of a query by column X if a value is present in field Y and sort by the value in column Z if a value isn't present in field Y.

Is this possible?

(I know how to sort query results by a single column).

Thanks, Russ

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Conditionally sort query results..

Hello Russell,

Unfortunately you can't do this way, only by using js. You should get the whole answer, sort,and then use

Russell Jarvis
Posts: 0
Joined: Wed Jul 16, 2014 8:18 am

Conditionally sort query results..

Hi Evgene, thanks for your answer. Is there a bit missing?

"get the whole answer, sort,and then use..." js??

Thanks

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Conditionally sort query results..

Russell,

Yes, you are right. "and then use JS".

Russell Jarvis
Posts: 0
Joined: Wed Jul 16, 2014 8:18 am

Conditionally sort query results..

:) thanks

Return to “Issues”