SortTable

<< Click to Display Table of Contents >>

Manual > Control Reference > Route > Route Methods >

SortTable


 

Sorts table information in ascending or descending order.

 


syntax

SortTable(

         valTable,

         [,column = ""]

         [,type = ""]

         [,reverse = FALSE]

         )

 


Parameters

 

valTable

 

Type:

General purpose

 

Specifies the table data to be sorted. Multiple values can be specified as an array.

 

column

 

Type:

character

 

Specify the column you want to sort.

Example: 0 - Sort by the 0th column

Example: 5 - sort by the 5th column

Example: c(5, 2) - sorts the 5th column first, then the 2nd column

Example: c(5, 2, 0) - sorts the 5th column first, then the 2nd column, then the 0th column

 

type

 

Type:

character

 

Type specification.

"" - Automatic

"text" - Sort based on values converted to text

"number" - Sort based on the converted number

"time" - Sort by the converted time value

 

reverse

 

Type:

Boolean

 

TRUE - descending

FALSE - ascending

 

Return Value

 

 

Type:

character

 

The index information that was sorted.

 


hmtoggle_plus1Example

 


Supported


Script Action

Browser script

×

Calculation Expression Syntax

 

 


reference