gresolv: Add scope handling to RFC3484 sort