Announcement Announcement Module
Collapse
No announcement yet.
mongo template sorting Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • mongo template sorting

    I can't seem to get any sort options to get sent to mongodb, is this a known issue?

    I'm doing:
    Code:
    Criteria criteria = ...
    Query query = QueryUtils.applySorting(
                                    new Query(criteria), 
                                    new Sort(new Order(Direction.ASC, "sortField"))
                           );
    List<?> items = template.find(query, FooBar.class);
Working...
X