(maint) maint/master/fix facts environment ordering

this fixes an issue with ordering by environment on the facts endpoint and
patches the corresponding blind spot in our tests.
Merge pull request #1035 from wkalt/maint/master/facts-environment-paging

(maint) fix order on environments for facts
(PDB-746) Add capability to use regexp when querying fact-nodes path types

This adds the new operator ~> which is a path regexp operator that only works
against the `path` type. It works by internally converting the array of
regular expressions into a single regular expression for querying
fact paths.

Signed-off-by: Ken Barber <ken@bob.sh>