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 order_to_keys(self, order):
      keys = []
      for k in order:  # orderstr.split(","):
          name = k[1:]
          if k[0] == "+":
              ascending = True
          elif k[0] == "-":
              ascending = False
          else:
              raise Exception(
                  "you must sort by ascending(+) or descending(-)"
              )
  
          key = {
              "key": {"section": "run", "name": name},
              "ascending": ascending,
          }
          keys.append(key)
  
      return {"keys": keys}
  
file_path: wandb/wandb/apis/public/query_generator.py
label_desc: Use image node_id 9 for calling the QueryGenerator obj's underlying member method code with example usage: obj.order_to_keys(order) and returns: dict