Complex sentence: The houses are created by sorting students in year 7; however, students who have family members who were pupils or former pupils of the school may elect to change houses to the same house.
Split into simpler sentences: The houses are created by sorting students in year 7. Alternatively, students who have family members who were pupils or former pupils of the school may elect to change houses to the same house.