I would suggest changing the name of this to just sort_hash