multiple sortByOption don't work

I’m trying to get comments from the DB.

I’ve added

queryOptions.addSortByOption("updated DESC");
queryOptions.addSortByOption("created DESC");

But the result only shows comments ordered by ‘updated DESC’ . And if any comment is not updated and only created once,
then it doesn’t show.

Hi Himanshu,

Please, try to use the examples from our documentation to solve your problem.
It looks like there is the very similar case in this section.
Regards, Ilya

Thank You Ilya