Table.orderBy() - zuki/Dexie.js GitHub Wiki
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().