Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dexie 4.0.1-alpha.13 does not sort results correctly #1731

Closed
dfahlander opened this issue May 31, 2023 · 0 comments
Closed

dexie 4.0.1-alpha.13 does not sort results correctly #1731

dfahlander opened this issue May 31, 2023 · 0 comments

Comments

@dfahlander
Copy link
Collaborator

Optimistic updates in 4.0.1-alpha.13 only sorts results based on index, but the IndexedDB specification requires sorting to be on the combination of index and primary key.

Example: If the query is db.todoItems.where('todoListId').equals(1).toArray(), the index 'todoListId' will be 1 on all results and sorting them on the index won't change any order. The canonical sorting should then be done on the primary key as second sort order.

A fix is on the way...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant