src/main/java/com/googlecode/objectify/util/Queries.java
public static void addOrderBy(final StructuredQuery.Builder<?> builder, final List<OrderBy> orderBy) {
		if (!orderBy.isEmpty()) {
			builder.addOrderBy(orderBy.get(0), orderBy.subList(1, orderBy.size()).toArray(new OrderBy[orderBy.size() - 1]));
		}
	}
public static void addOrderBy(final StructuredQuery.Builder<?> builder, final List<OrderBy> orderBy) {
		if (!orderBy.isEmpty()) {
			builder.addOrderBy(orderBy.get(0), orderBy.subList(1, orderBy.size()).toArray(new OrderBy[orderBy.size() - 1]));
		}
	}
public static void addOrderBy ( final StructuredQuery . Builder < ? > builder , final List < OrderBy > orderBy ) { if ( ! orderBy . isEmpty ( ) ) { builder . addOrderBy ( orderBy . get ( 0 ) , orderBy . subList ( 1 , orderBy . size ( ) ) . toArray ( new OrderBy [ orderBy . size ( ) - 1 ] ) ) ; } }
The Builder api is programmer-hostile
The Builder api is programmer - hostile