added sorted to field error list to match error string in tests
renamed connection to relation