Decided to go back to the default alphabetical ordering of the activity factors as keeping the original order does not help with the purpose of the script and introduces an extra step.