-
-
Notifications
You must be signed in to change notification settings - Fork 641
Table.orderBy()
David Fahlander edited this page Apr 9, 2014
·
8 revisions
Return a collection of all items in table ordered by given index.
table.orderBy(index)
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 |
Returns an unfiltered collection sorted by the index or primary key that is specified in given argument. Note that you can only specify an indexed property here or the primary key. If you want to sort by an unindexed proptery, use Collection.sortBy() instead.
Dexie.js - minimalistic and bullet proof indexedDB library