Add sorting to pcgen output