parameters: (data: dict[str, Any], separator: str)
return_statement: return {**top_dict_, **nested_dict_}
docstring: Order the top level keys and then recursively go to depth
  
      Parameters
      ----------
      data : dict or list of dicts
      separator : str, default '.'
          Nested records will generate names separated by sep,
          e.g., for sep='.', { 'foo' : { 'bar' : 0 } } -> foo.bar
  
      Returns
      -------
      dict or list of dicts, matching `normalised_json_object`
docstring_summary: Order the top level keys and then recursively go to depth
docstring_tokens: Order the top level keys and then recursively go to depth
function: def _normalise_json_ordered(data: dict[str, Any], separator: str) -> dict[str, Any]:
      """
      Order the top level keys and then recursively go to depth
  
      Parameters
      ----------
      data : dict or list of dicts
      separator : str, default '.'
          Nested records will generate names separated by sep,
          e.g., for sep='.', { 'foo' : { 'bar' : 0 } } -> foo.bar
  
      Returns
      -------
      dict or list of dicts, matching `normalised_json_object`
      """
      top_dict_ = {k: v for k, v in data.items() if not isinstance(v, dict)}
      nested_dict_ = _normalise_json(
          data={k: v for k, v in data.items() if isinstance(v, dict)},
          key_string="",
          normalized_dict={},
          separator=separator,
      )
      return {**top_dict_, **nested_dict_}
function_tokens: def _normalise_json_ordered ( data : dict [ str , Any ] , separator : str ) -> dict [ str , Any ] : top_dict_ = { k : v for k , v in data . items ( ) if not isinstance ( v , dict ) } nested_dict_ = _normalise_json ( data = { k : v for k , v in data . items ( ) if isinstance ( v , dict ) } , key_string = "" , normalized_dict = { } , separator = separator , ) return { * * top_dict_ , * * nested_dict_ }