Skip to content

Table.orderBy()

David Fahlander edited this page Apr 9, 2014 · 8 revisions

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

Syntax

table.orderBy(index)

Parameters

index: String Primary key or index to use for sorting. Special string ":id" will always order by the primary key.
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