SortItems  Table

The SortItems function sorts items.

Syntax

Table.SortItems(
     String field,
     Integer number = false,
     Integer asc = true,
     String fieldFrom = "")

Parameters

fieldName or Index of the field to sort.Required
number
true, false
Compare cell values as numbers or strings.Optional
asc
true, false
Ascending or Descending.Optional
fieldFromUse a parent field to sort items. The parent field will not be modified.Optional

Return value

The SortItems function has no return values.

Example

// Firstly, sort by ages
myTable.SortItems("Age"true)

// Secondly, sort by names
myTable.SortItems("Name"falsetrue"Age")
SECCIA Documentation - Copyright © 2001-2009 Sylvain Seccia