search - patched unit test for sorting