Please remove any grammar mistakes from the following sentence:
So when selection processing, the academic achievement of candidate is not the priority to be considered but their loyalty to the party.
So in the selection process, the academic achievement of the candidate is not the priority to be considered but their loyalty to the party.