/** * Creates a descending natural sort on a field * * @return the Sort instance */ public static Sort naturalDescending() { return new Sort(NATURAL, -1); }
/** * Creates an ascending sort on a field * * @param field the field * @return the Sort instance */ public static Sort ascending(final String field) { return new Sort(field, 1); }
/** * Creates a descending sort on a field * * @param field the field * @return the Sort instance */ public static Sort descending(final String field) { return new Sort(field, -1); }
/** * Creates an ascending sort on a field * * @return the Sort instance */ public static Sort naturalAscending() { return new Sort(NATURAL, 1); }