Rewrite document spec based off AS ordered hash