Use sorting so un-needed resource applies don't occur. Fixes #43

Using `to_yaml` against the hash causes the entries to be reordered when erb executes against this file every puppet run. This adds a lot of unhelpful noise. This implementation keeps the same interface (no changes needed to manifests using this integration) and ensures no unnecessary applies against this yaml file.