Class Sort

java.lang.Object
com.liferay.portal.odata.sort.Sort

public class Sort extends Object
Models a sort parameter for sorting structured content by different fields and sort directives.
  • Field Details

    • EMPTY_SORT

      public static final Sort EMPTY_SORT
  • Constructor Details

    • Sort

      public Sort(List<SortField> sortFields)
      Creates a new sort from the sort fields.
      Parameters:
      sortFields - the sort fields
  • Method Details

    • emptySort

      public static Sort emptySort()
      Returns an empty sort.
      Returns:
      the empty sort
    • getSortFields

      public List<SortField> getSortFields()
      Returns the sort fields.
      Returns:
      the sort fields