Sort arrays before comparing params

When using the -> syntax for assigning relationships,
the order in which the values are assigned to parameters
can be non-deterministic.

This patch sorts arrays used to specify order in Puppet
in order to reduce differences that do not effect how
configuration is applied.