Dataset.addsort() - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

DataSet.addSort()

Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSetInstance.addSort(name, fieldList, sortOptions)
Parameters
A string that specifies the name of the sort.
name
An array of strings that specify the field names to sort on.
fieldList
One or more of the following integer (constant) values, which indicate what
sortOptions
options are used for this sort. Separate multiple values using the bitwise OR operator (
Specify one or more of the following values:
DataSetIterator.Ascending
option, if none is specified.
DataSetIterator.Descending
properties specified.
DataSetIterator.Unique
DataSetIterator.CaseInsensitive
the sort operation. By default, sorts are case-sensitive when the property being sorted on is
a string.
A
exception is thrown when
DataSetError
option and the data being sorted is not unique, when the specified sort name has already been
added, or when a property specified in the
Returns
Nothing.
Description
Method; creates a new ascending or descending sort for the current iterator based on the
properties specified by the
the current iterator after it is created, and then stores it in the sorting collection for later
retrieval.
Sorts items in ascending order. This is the default sort
Sorts items in descending order based on item
Prevents the sort if any fields have like values.
Ignores case when comparing two strings during
DataSetIterator.Unique
fieldList
parameter. Flash automatically assigns the new sort to
fieldList
is specified as a sort
array does not exist in this data set.
DataSet.addSort()
).
|
343

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents