If I run facter (e.g. facter -p) multiple times then every time I obtain the same results but in different order.

This makes more difficult than necessary to compare different runs of facter or puppet.

How can I obtain a stable output order?