We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a3c03d commit b6181d6Copy full SHA for b6181d6
hnswlib/bruteforce.h
@@ -121,12 +121,8 @@ namespace hnswlib {
121
result.push_back(ret.top());
122
ret.pop();
123
}
124
-
125
- if (result.size() > 1) {
126
- if (!comp(result.front(), result.back())) {
127
- std::reverse(result.begin(), result.end());
128
- }
129
+
+ std::sort(result.begin(), result.end(), comp);
130
131
return result;
132
hnswlib/hnswalg.h
@@ -962,11 +962,7 @@ namespace hnswlib {
962
963
964
965
966
967
968
969
970
971
972
0 commit comments