This can just be `sorted(basic_db)` if you want the keys of a dict sorted.