class_docstr: Specifies whether a sorted list of models should be in ascending or
  descending order.
  
  This class is deprecated in favor of ``OrderBy`` and will be removed in a future
  release.
class_docstr_tok: ["Specifies","whether","a","sorted","list","of","models","should","be","in","ascending","or","descending","order",".","This","class","is","deprecated","in","favor","of","``","OrderBy","``","and","will","be","removed","in","a","future","release","."]
code: def _to_bindings(self) -> bindings.v1OrderBy:
      return bindings.v1OrderBy(self.value)
  
imports: import datetime
  import enum
  import itertools
  import json
  import warnings
  from typing import Any, Dict, Iterable, List, Optional
  from determined.common import api, util
  from determined.common.api import bindings
  from determined.common.experimental import checkpoint, metrics
  from determined.common.experimental._util import OrderBy
label_desc: Use image node_id 2 for calling the ModelOrderBy obj's underlying member method code with example usage: obj._to_bindings() and returns: bindings