Packageorg.as3collections
Interfacepublic interface ISortedList extends IList, org.as3coreaddendum.system.ISortable, ICollection, IIterable, org.as3coreaddendum.system.ICloneable, org.as3coreaddendum.system.IEquatable
Implementors SortedArrayList, TypedSortedList, UniqueSortedList

A list that provides a total ordering on its elements. The list is ordered according to the natural ordering of its elements, by a IComparator typically provided at sorted list creation time, or by the arguments provided to the sort or sortOn methods.

See also

SortedArrayList
org.as3coreaddendum.system.ISortable


Public Properties
 PropertyDefined By
 InheritedallEquatable : Boolean
[read-only] Indicates whether all elements in this collection implement the interface org.as3coreaddendum.system.IEquatable.
ICollection
 InheritedmodCount : int
[read-only] The number of times this list has been structurally modified.
IList
Public Methods
 MethodDefined By
 Inherited
add(element:*):Boolean
Ensures that this collection contains the specified element (optional operation).
ICollection
 Inherited
addAll(collection:ICollection):Boolean
Adds all of the elements in the specified collection to this collection (optional operation).
ICollection
 Inherited
addAllAt(index:int, collection:ICollection):Boolean
Inserts all of the elements in the specified collection into this list at the specified position (optional operation).
IList
 Inherited
addAt(index:int, element:*):Boolean
Inserts the specified element at the specified position in this list (optional operation).
IList
 Inherited
clear():void
Removes all of the elements from this collection (optional operation).
ICollection
 Inherited
contains(o:*):Boolean
Returns true if this collection contains the specified object.
ICollection
 Inherited
containsAll(collection:ICollection):Boolean
Returns true if this collection contains all of the elements in the specified collection.
ICollection
 Inherited
getAt(index:int):*
Returns the element at the specified position in this list.
IList
 Inherited
indexOf(element:*, fromIndex:int = 0):int
Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element.
IList
 Inherited
isEmpty():Boolean
Returns true if this collection contains no elements.
ICollection
 Inherited
Returns an iterator over a set of elements.
IIterable
 Inherited
lastIndexOf(element:*, fromIndex:int = 0x7fffffff):int
Returns the index of the last occurrence of the specified element in this list, or -1 if this list does not contain the element.
IList
 Inherited
Returns a list iterator of the elements in this list (in proper sequence), starting at the specified position in this list.
IList
 Inherited
remove(o:*):Boolean
Removes a single instance (only one occurrence) of the specified object from this collection, if it is present (optional operation).
ICollection
 Inherited
removeAll(collection:ICollection):Boolean
Removes all elements of this collection that are also contained in the specified collection (optional operation).
ICollection
 Inherited
removeAt(index:int):*
Removes the element at the specified position in this list (optional operation).
IList
 Inherited
removeRange(fromIndex:int, toIndex:int):ICollection
Removes all of the elements whose index is between fromIndex, inclusive, and toIndex, exclusive (optional operation).
IList
 Inherited
retainAll(collection:ICollection):Boolean
Retains only the elements in this collection that are contained in the specified collection (optional operation).
ICollection
 Inherited
reverse():void
Reverses the order of the elements in this list.
IList
 Inherited
setAt(index:int, element:*):*
Replaces the element at the specified position in this list with the specified element (optional operation).
IList
 Inherited
size():int
Returns the number of elements in this collection.
ICollection
  
sortOn(fieldName:*, options:* = null):Array
Sorts the elements in an array according to one or more fields in the array.
ISortedList
 Inherited
subList(fromIndex:int, toIndex:int):IList
Returns a new list that is a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive.
IList
 Inherited
toArray():Array
Returns an array containing all of the elements in this collection.
ICollection
Method Detail
sortOn()method
public function sortOn(fieldName:*, options:* = null):Array

Sorts the elements in an array according to one or more fields in the array.

Consult Array.sortOn in the ActionScript 3.0 Language Reference in the link below for more info.

Parameters

fieldName:*
 
options:* (default = null)

Returns
Array

See also