[]
Serializable, Comparable<SortOrientation>, ConstableUse this enum to indicate whether sorting is performed by rows or by columns. It is commonly used with IRange.sort(IRange,SortOrder,SortOrientation) and ISort.setOrientation(SortOrientation).
worksheet.getRange("A1").setValue(2);
worksheet.getRange("A2").setValue(1);
worksheet.getRange("B1").setValue("B");
worksheet.getRange("B2").setValue("A");
worksheet.getRange("A1:B2").sort(worksheet.getRange("A1:A2"), SortOrder.Ascending, SortOrientation.Columns);
Enum.EnumDesc<E extends Enum<E>>static SortOrientationforValue(int value) intgetValue()static SortOrientationstatic SortOrientation[]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