def prepare_params p
      results = {}
      # Build a new hash with string keys
      p.each { |k, v| results[k.to_s] = v }
      # Sort nested structures
      results.sort.to_h
    end
def prepare_params p
      results = {}
      # Build a new hash with string keys
      p.each { |k, v| results[k.to_s] = v }
      # Sort nested structures
      results.sort.to_h
    end
Sort the params consistently