Constructordojox.collections.SortedList

dojo.require("dojox.collections.SortedList");
defined in dojox/collections/SortedList.js

creates a collection that acts like a dictionary but is also internally sorted. Note that the act of adding any elements forces an internal resort, making this object potentially slow.

Usage

function (/*Object?*/ dictionary) (view source)
parametertypedescription
dictionaryObjectOptional.

Jump to PropertiesFunctionsBack to top

Functionadd(k: String, v: Object)
add the passed value to the dictionary at location k
clear the internal collections
create a clone of this sorted list
Check to see if the list has a location k
Check to see if this list contains the passed object
FunctioncopyTo(arr: Array, i: Integer)
copy the contents of the list into array arr at index i
return the object at location k
FunctionforEach(fn: Function, scope: Object?)
functional iterator, following the mozilla spec.
return the item at index i
get an iterator for this object
return the key of the item at index i
return an array of the keys set in this list
return an array of values in this list
return the index of the passed key.
return the first index of object o
return the value of the object at location k.
remove the item at location k and rebuild the internal collections.
remove the item at index i, and rebuild the internal collections.
Replace an existing item if it's there, and add a new one if not.
set an item by index

Jump to FunctionsPropertiesBack to top