Interface OrderBy<T>

  • Type Parameters:
    T -
    All Known Subinterfaces:
    Filter<T>, Query<T>, ScoredFilter<T>

    public interface OrderBy<T>
    orderBy operation
    API:
    This is a public API.
    • Method Detail

      • orderBy

        OrderByField<T> orderBy()

        Orders the result.

        Example:

         import workflow.business.data.Dossier;
         
         List<Dossier> result = ivy.repo.search(Dossier.class)
              .orderBy().field("person.lastName").descending()
              .execute()
              .getAll();
         

        Returns:
        order by field operation
        API:
        This public API is available in IvyScript and Java. It has the visibility ADVANCED.