-
-
Notifications
You must be signed in to change notification settings - Fork 641
Table.orderBy()
Christopher Hunt edited this page Jul 17, 2016
·
8 revisions
Return a collection of all items in table ordered by given index.
table.orderBy(index)
index: String | The primary key or index to use for sorting. The special string ":id" will always order by the primary key. |
Returns an unfiltered collection sorted by the index or primary key given by index
. Note that index
can only be an indexed property or the primary key. If you want to sort by an un-indexed property, then use Collection.sortBy() instead.
See the sample in Table.offset().
Dexie.js - minimalistic and bullet proof indexedDB library