code: def test_order_by_flag(run_cli, geojson_path):
      result = run_cli(
          "--geometry",
          geojson_path,
          "--url",
          "https://apihub.copernicus.eu/apihub/",
          "-s",
          "20151219",
          "-e",
          "20151220",
          "--order-by",
          "platformname,-size",
      )
      # Check that order matches platformname,-size
      sats = []
      sizes = {}
      for prod in result.products:
          m = re.search(r"Satellite: (\S+), Size: (\S+ \S+)", prod)
          assert m, prod
          sats.append(m.group(1))
          sizes.setdefault(m.group(1), []).append(m.group(2))
      assert sats == sorted(sats)
      for sizes_group in sizes.values():
          assert sizes_group == sorted(sizes_group, reverse=True)
  
imports: import json
  import os
  import re
  import glob
  import shutil
  from contextlib import contextmanager
  from functools import partialmethod
  import pytest
  import requests_mock
  from click.testing import CliRunner
  from sentinelsat import SentinelAPI, InvalidChecksumError
  from sentinelsat.scripts.cli import cli
label_desc: Use image node_id 13 for calling a global function with example usage: test_order_by_flag(run_cli, geojson_path) without return types