(#12296) Make Puppet::Type ordered.
Type instances have a reasonable natural order, which allows us to make them
Comparable. This, in turn, makes any interaction where ordering is of
interest easier to deal with.
This implementation uses the string form of the resource as the basis for
comparison, which is a reasonable starting point from existing definitions of
ordering over resource instances.
Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>