Package org.mongojack

Class DBSort.SortBuilder

    • Method Detail

      • asc

        public DBSort.SortBuilder asc​(String field)
        Sort ascending by the given field.
        Parameters:
        field - The field to sort by.
        Returns:
        The sort specification.
      • desc

        public DBSort.SortBuilder desc​(String field)
        Sort descending by the given field.
        Parameters:
        field - The field to sort by.
        Returns:
        The sort specification.