[]
Serializable, Comparable<SortOnType>, ConstableUse this enum to identify whether a sort field orders data by cell values, cell color, font color, or cell icons. It is commonly returned by ISortField.getSortOn() to describe how a sort field evaluates the target range.
worksheet.getRange("A1:A3").setValue(new Object[][] {
{"Name"},
{"Bob"},
{"Alice"}
});
IValueSortField sortField = new ValueSortField(worksheet.getRange("A1:A3"), SortOrder.Ascending);
if (sortField.getSortOn() == SortOnType.Values) {
worksheet.getRange("A1:A3").sort(SortOrientation.Columns, false, sortField);
}
Enum.EnumDesc<E extends Enum<E>>static SortOnTypestatic SortOnType[]values()name - the name of the enum constant to be returned.IllegalArgumentException - if this enum class has no constant with the specified nameNullPointerException - if the argument is null