Code required to copy then sort each sub section