Fixed slow sortBy test