[]
Serializable, Comparable<SortOrder>, Constable使用此枚举可以控制数据的排序方式,例如基于值的排序采用升序或降序,或者其他排序类型采用顶部和底部优先级。
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