Splitting up lists of sites based on jcodes and sitecodes