You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Order diff between backend and client with order_by_key() #677
So according to this link, order should be the same as the collection but in the corresponding OrderedDict the order is not the same so if you want make a pagination strategy, it just loops as getting the last key of the OrderedDict returned and using it in start_at will return the same result over and over again.
So the client sorter is not triggered when ordering by key and we will have the same order as the database given here instead of a pure lexicographic one
Activity
tperraut commentedon Mar 2, 2023
We fixed this issue on a fork replacing this line :
firebase-admin-python/firebase_admin/db.py
Line 622 in 5c21b81
by
So the client sorter is not triggered when ordering by key and we will have the same order as the database given here instead of a pure lexicographic one
tperraut commentedon Sep 2, 2026
up
fix(rtdb): Preserve server-side key order in order_by_key() query res…
fix(rtdb): Sort order_by_key() results the way the backend does