/** * Order results in descending order by the given {@code fieldName}. * @param fieldName the field name to order results by. * @param fieldType the field type. * @return a reference to this object. */ public Builder orderDescending(String fieldName, TypeName fieldType) { return order(fieldName, fieldType, SortOrder.DESC); }
/** * Order results in ascending order by the given {@code fieldName}. * @param fieldName the field name to order results by. * @param fieldType the field type. * @return a reference to this object. */ public Builder orderAscending(String fieldName, TypeName fieldType) { return order(fieldName, fieldType, SortOrder.ASC); }