[]
Serializable, Comparable<SortOrder>, ConstableUse this enum to control how data is sorted, such as ascending or descending for value-based sorts, or top and bottom priority for other sort types.
worksheet.getRange("A1:B4").setValue(new Object[][] {
{2, "B"},
{1, "A"},
{3, "C"},
{1, "D"}
});
worksheet.getRange("A1:B4").sort(worksheet.getRange("A1:A4"), SortOrder.Ascending, SortOrientation.Columns);
Enum.EnumDesc<E extends Enum<E>>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