Use 'order-by' on PuppetDB API queries.

Specify an order for the resources, ensures resources follow a
constant order on the generated files. With this, we can easily
compare (diff, md5) results from several runs.