Package | org.as3collections |
Interface | public interface ISortedList extends IList, org.as3coreaddendum.system.ISortable, ICollection, IIterable, org.as3coreaddendum.system.ICloneable, org.as3coreaddendum.system.IEquatable |
Implementors | SortedArrayList, TypedSortedList, UniqueSortedList |
IComparator
typically provided at sorted list creation time, or by the arguments provided to the sort
or sortOn
methods.
See also
Method | Defined By | ||
---|---|---|---|
add(element:*):Boolean
Ensures that this collection contains the specified element (optional operation). | ICollection | ||
addAll(collection:ICollection):Boolean
Adds all of the elements in the specified collection to this collection (optional operation). | ICollection | ||
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 | ||
addAt(index:int, element:*):Boolean
Inserts the specified element at the specified position in this list (optional operation). | IList | ||
clear():void
Removes all of the elements from this collection (optional operation). | ICollection | ||
contains(o:*):Boolean
Returns true if this collection contains the specified object. | ICollection | ||
containsAll(collection:ICollection):Boolean
Returns true if this collection contains all of the elements in the specified collection. | ICollection | ||
getAt(index:int):*
Returns the element at the specified position in this list. | IList | ||
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 | ||
isEmpty():Boolean
Returns true if this collection contains no elements. | ICollection | ||
Returns an iterator over a set of elements. | IIterable | ||
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 | ||
listIterator(index:int = 0):IListIterator
Returns a list iterator of the elements in this list (in proper sequence), starting at the specified position in this list. | IList | ||
remove(o:*):Boolean
Removes a single instance (only one occurrence) of the specified object from this collection, if it is present (optional operation). | ICollection | ||
removeAll(collection:ICollection):Boolean
Removes all elements of this collection that are also contained in the specified collection (optional operation). | ICollection | ||
removeAt(index:int):*
Removes the element at the specified position in this list (optional operation). | IList | ||
removeRange(fromIndex:int, toIndex:int):ICollection
Removes all of the elements whose index is between fromIndex, inclusive, and toIndex, exclusive (optional operation). | IList | ||
retainAll(collection:ICollection):Boolean
Retains only the elements in this collection that are contained in the specified collection (optional operation). | ICollection | ||
reverse():void
Reverses the order of the elements in this list. | IList | ||
setAt(index:int, element:*):*
Replaces the element at the specified position in this list with the specified element (optional operation). | IList | ||
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 | ||
Returns a new list that is a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive. | IList | ||
toArray():Array
Returns an array containing all of the elements in this collection. | ICollection |
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 )
|
Array —
|
See also