idempotency fix: sort results when using query facts in hiera