parameters: (d)
return_statement: return sorted(o, key=_key)
docstring: Order dict by its values.
docstring_summary: Order dict by its values.
docstring_tokens: Order dict by its values .
function: def order_dict(d):
      """Order dict by its values."""
      o = list(d.items())
      def _key(x):
          return x[1] + (x[0],)
      return sorted(o, key=_key)
function_tokens: def order_dict ( d ) : o = list ( d . items ( ) ) def _key ( x ) : return x [ 1 ] + ( x [ 0 ] , ) return sorted ( o , key = _key )