getCrossSectionObjects now sorts the result
Detectors are now written in sorted order