I have noticed some inconsistency in the order of keys returned when iterating through the database. Particularly, I notice the ordering is one way when I first store data, then when I close and reopen the database, the ordering is different (reversed, typically).
I've noticed this with both file and in-memory databases.
Is the ordering stable or predictable? What's going on here?