idempotency fix: sort results when using query facts in hiera

Could you consider merge following fix for non idempotent behaviour. Querying facts in hiera results come is random order what time to time creates new catalog:

data in hiera
ntp::servers::_nodequery": [ "Class[Ntp] and Class[Wg::Mgmt] and site=%{::site}","ipaddress" ],

agent log
2014-12-03T07:03:27.280062+00:00 node-80 puppet-agent[2298]: Finished catalog run in 33.38 seconds$
2014-12-03T07:33:18.488357+00:00 node-80 puppet-agent[7474]: Finished catalog run in 25.88 seconds$
2014-12-03T08:03:26.849164+00:00 node-80 puppet-agent[12568]: Finished catalog run in 34.13 seconds$
2014-12-03T08:33:03.129171+00:00 node-80 puppet-agent[17674]: (/Stage[main]/Ntp::Config/File[/etc/ntp.conf]/content) content changed '{md5}782b57b2f5107f7c3d5da0a4ca989b0c' to '{
md5}b27965b24a7b6d95de07c5752fdb7947'$
2014-12-03T08:33:19.009255+00:00 node-80 puppet-agent[17674]: (/Stage[main]/Ntp::Service/Service[ntp]) Triggered 'refresh' from 1 events$
2014-12-03T08:33:34.410194+00:00 node-80 puppet-agent[17674]: Finished catalog run in 40.86 seconds$
2014-12-03T09:03:11.120723+00:00 node-80 puppet-agent[22807]: (/Stage[main]/Ntp::Config/File[/etc/ntp.conf]/content) content changed '{md5}b27965b24a7b6d95de07c5752fdb7947' to '{
md5}782b57b2f5107f7c3d5da0a4ca989b0c'$
2014-12-03T09:03:22.008948+00:00 node-80 puppet-agent[22807]: (/Stage[main]/Ntp::Service/Service[ntp]) Triggered 'refresh' from 1 events$
2014-12-03T09:03:38.083029+00:00 node-80 puppet-agent[22807]: Finished catalog run in 43.00 seconds$
2014-12-03T09:33:02.539291+00:00 node-80 puppet-agent[27943]: (/Stage[main]/Ntp::Config/File[/etc/ntp.conf]/content) content changed '{md5}782b57b2f5107f7c3d5da0a4ca989b0c' to '{md5}b27965b24a7b6d95de07c5752fdb7947'$
.....