class Thor::CoreExt::OrderedHash

def replace(other)

When replacing with another hash, the initial order of our keys must come from the other hash -ordered or not.
def replace(other)
  super
  @keys = other.keys
  self
end