I am having a problem in setting up querybuilder with multiple sort criterias.
Currently I use something like this:
But the result is not what it's supposed to be, with the data sorted by criteria 1 first, and the same date on criteria 1 sorted again on criteria 2.
Could anyone help?
There are two problems with the code you pasted. The first is that you're reusing the 1_ prefix which causes the property to be effectively ignored. The second is that 1_orderby has a trailing period, i.e. it is "1_orderby." instead of "1_orderby". If you correct these two errors you should see the correct results.
I'd highly recommend using the QueryBuilder Debugger (/libs/cq/search/content/querydebug.html) to work through these types of issues.
Thanks for your help. I'll check it out.