Skip to content

Table.orderBy()

David Fahlander edited this page Mar 28, 2014 · 8 revisions

Return a collection of all items in table ordered by given index.

Syntax

table.orderBy(index)

Parameters

keyPath: String Name of a property or sub property to use for sorting.
callback: Function function (array) { } optional

Return Value

Collection

Remarks

Returns an unfiltered collection sorted by the index or primary key that is specified in given argument.

See Also

Collection.sortBy()

Clone this wiki locally