code: def sort(self) -> None:
      develop: Optional[Mapping[str, Any]] = None
      for v in self._versions:
          if v["version"] == "develop":
              develop = v
      versions = [
          v for v in self._versions if v["version"] != "develop"
      ]
      versions.sort(key=lambda v: Version(v["version"]), reverse=True)
      if develop is not None:
          # Insert `develop` in the second spot, after the latest release, but before older
          # releases:
          versions.insert(1, develop)
      self._versions = versions
      self._sorted = True
  
file_path: GPflow/doc/update_versions.py
imports: import argparse
  import json
  from pathlib import Path
  from typing import Any, List, Mapping, Optional
  from packaging.version import Version
  from versions import Branch
label_desc: Use image node_id 6 for calling the _Versions obj's underlying member method code with example usage: obj.sort() without return types