File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66name = " superduper-framework"
77description = " 🔮 Bring AI to your favourite database 🔮"
88readme = " README.md"
9- version = ' 0.5.7 '
9+ version = ' 0.5.8 '
1010license = {file = " LICENSE" }
1111maintainers = [{
name =
" superduper.io, Inc." ,
email =
" [email protected] " }]
1212keywords = [
Original file line number Diff line number Diff line change @@ -64,6 +64,14 @@ def __init__(
6464 self ._documents = list (
6565 self .db .execute (self .select .select_using_ids (ids ))
6666 )
67+ primary_id = self .select .id_field
68+ # is it possible that the _documents came out in a different order?
69+ # if so, resort them
70+ lookup = {
71+ r [primary_id ]: r for r in self ._documents
72+ }
73+ self ._documents = [lookup [id ] for id in ids ]
74+ # DONE
6775 else :
6876 if ids is None :
6977 self ._ids = [
You can’t perform that action at this time.
0 commit comments