def test_adding_pre_hook_adapter(self):
        d = self._hookTest("""endpoints:
  "POST %(dockerEndpoint)s":
    pre: [adder]
    post: []
adapters:
  adder: http://127.0.0.1:%(adderPort)d%(adapterEndpoint)s""")
        def verify(response):
            self.assertEqual(response,
                    {"Number": 2, "SeenByFakeDocker": 42})
        d.addCallback(verify)
        return d
Sorting method of DMS search.
dataset/ETHPy150Open ClusterHQ/powerstrip/powerstrip/test/test_core.py/ProxyTests.test_adding_pre_hook_adapter--crossover with--dataset/ETHPy150Open adlibre/Adlibre-DMS/adlibre_dms/apps/core/search.py/DMSSearchManager.search_results_sorted