Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Query query = new Query();
- query.with(new Sort(Direction.DESC, "crDate")).with(new Sort(Direction.DESC, "ratings"));
- {"crDate":-1,"ratings":-1}
- query.with(new Sort(Direction.DESC, Arrays.asList("crDate", "ratings")));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement