Adding logic to reorder insert statements
Merge branch 'master' of github.com:pressgang-ccms/PressGangCCMSDeployable