I have two fields I want to sort with

(order by clicks descending, date descending)

query.sort().on("clicks", Order.DESCENDING);
query.sort().on("date", Order.DESCENDING);

With this it won't work, date is always messing the whole sort. Both work separately, but not together. I might be doing this the wrong way, but didn't come up with anything else.


Is anyone else doing something like this?