(maint) fix order on environments for facts

this fixes an issue with ordering by environment on the facts endpoint and
patches the corresponding blind spot in our tests.
this logic is not forward compatible (for say :v5 when we introduce it). If we invert the logic to exclude v2/v3 it would be.