<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_process_sort(self, event_type):
 """Define the process auto sort key from the alert type."""

        if glances_processes.auto_sort:
            glances_processes.sort_key = self.get_event_sort_key(event_type)