Packagemx.collections
Classpublic final class SortFieldCompareTypes
InheritanceSortFieldCompareTypes Inheritance Object

Language Version : ActionScript 3.0
Product Version : Flex 4.11
Runtime Versions : Flash Player 11.8, AIR 3.8

The SortFieldCompareTypes class defines the valid constant values for the sortCompareType property of the SortField and GridColumn.

Designed to be used from a DataGrids column, but can be referenced directly on the SortField

Use the constants in ActionsScript, as the following example shows:

       column.sortCompareType = SortFieldCompareTypes.NUMERIC;
     

In MXML, use the String value of the constants, as the following example shows:

       <s:GridColumn sortCompareType="numeric" /> 
     



Public Methods
 MethodDefined By
  
Constructor.
SortFieldCompareTypes
Public Constants
 ConstantDefined By
  DATE : String = date
[static] Represents the dateCompare inside a SortField.
SortFieldCompareTypes
  NULL : String = null
[static] Represents the nullCompare inside a SortField.
SortFieldCompareTypes
  NUMERIC : String = numeric
[static] Represents the numericCompare inside a SortField.
SortFieldCompareTypes
  STRING : String = string
[static] Represents the stringCompare inside a SortField.
SortFieldCompareTypes
  XML : String = xml
[static] Represents the xmlCompare inside a SortField.
SortFieldCompareTypes
Constructor Detail
SortFieldCompareTypes()Constructor
public function SortFieldCompareTypes()

Language Version : ActionScript 3.0
Product Version : Flex 4.10
Runtime Versions : Flash Player 11.1, AIR 3.4

Constructor.

Constant Detail
DATEConstant
public static const DATE:String = date

Language Version : ActionScript 3.0
Product Version : Flex 4.11
Runtime Versions : Flash Player 11.8, AIR 3.8

Represents the dateCompare inside a SortField.

NULLConstant 
public static const NULL:String = null

Language Version : ActionScript 3.0
Product Version : Flex 4.11
Runtime Versions : Flash Player 11.8, AIR 3.8

Represents the nullCompare inside a SortField.

NUMERICConstant 
public static const NUMERIC:String = numeric

Language Version : ActionScript 3.0
Product Version : Flex 4.11
Runtime Versions : Flash Player 11.8, AIR 3.8

Represents the numericCompare inside a SortField. This also is used for boolean comparisons.

STRINGConstant 
public static const STRING:String = string

Language Version : ActionScript 3.0
Product Version : Flex 4.11
Runtime Versions : Flash Player 11.8, AIR 3.8

Represents the stringCompare inside a SortField.

XMLConstant 
public static const XML:String = xml

Language Version : ActionScript 3.0
Product Version : Flex 4.11
Runtime Versions : Flash Player 11.8, AIR 3.8

Represents the xmlCompare inside a SortField.