code: def get_event_sort_key(self, event_type):
          if event_type.startswith("MEM"):
              ret = 'memory_percent'
          elif event_type.startswith("CPU_IOWAIT"):
              ret = 'io_counters'
          else:
              ret = 'cpu_percent'
          return ret