MCPcopy
hub / github.com/VectifyAI/PageIndex / reorder_dict

Function reorder_dict

pageindex/utils.py:634–637  ·  view source on GitHub ↗
(data, key_order)

Source from the content-addressed store, hash-verified

632
633
634def reorder_dict(data, key_order):
635 if not key_order:
636 return data
637 return {key: data[key] for key in key_order if key in data}
638
639
640def format_structure(structure, order=None):

Callers 1

format_structureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected