Sort dependency arrays before comparing params

When using the -> syntax for assigning relationships,
the order in which the values are assigned to meta-parameters
can be non-deterministic.

This patch sorts arrays used to specify order in Puppet
to reduce differences that do not effect how configuration
is applied.