Updated generate words json to sort words before saving to destination.