Added correct sort of parameters (refs #194).