Fix sort in search is not multidimensional. #139