class_docstr: QueryGenerator is a helper object to write filters for runs.
class_docstr_tok: ["QueryGenerator","is","a","helper","object","to","write","filters","for","runs","."]
code: def format_order_key(cls, key: str):
      if key.startswith("+") or key.startswith("-"):
          direction = key[0]
          key = key[1:]
      else:
          direction = "-"
      parts = key.split(".")
      if len(parts) == 1:
          # Assume the user meant summary_metrics if not a run column
          if parts[0] not in [
              "createdAt",
              "updatedAt",
              "name",
              "sweep",
          ]:
              return direction + "summary_metrics." + parts[0]
      # Assume summary metrics if prefix isn't known
      elif parts[0] not in ["config", "summary_metrics", "tags"]:
          return direction + ".".join(["summary_metrics"] + parts)
      else:
          return direction + ".".join(parts)
  
file_path: wandb/wandb/apis/public/query_generator.py
label_desc: Use image node_id 2 for calling the QueryGenerator obj's underlying member method code with example usage: obj.format_order_key(cls, key) and returns: unknown, unknown, unknown