Complex sentence: "Sardines" has more characters than any other episode of the first series, and these characters were written before casting took place.
Split into simpler sentences: Sardines has more characters than any other episode of the first series. The characters were written before casting took place.