forked from organicmaps/organicmaps
[geocoder] Fix for review
This commit is contained in:
parent
ea4788da28
commit
ef46d61e47
1 changed files with 2 additions and 2 deletions
|
@ -44,11 +44,11 @@ Index::Doc const & Index::GetDoc(DocId const id) const
|
|||
// static
|
||||
string Index::MakeIndexKey(Tokens const & tokens)
|
||||
{
|
||||
if (tokens.size() == 1 || std::is_sorted(begin(tokens), end(tokens)))
|
||||
if (tokens.size() == 1 || is_sorted(begin(tokens), end(tokens)))
|
||||
return strings::JoinStrings(tokens, " ");
|
||||
|
||||
auto indexTokens = tokens;
|
||||
std::sort(begin(indexTokens), end(indexTokens));
|
||||
sort(begin(indexTokens), end(indexTokens));
|
||||
return strings::JoinStrings(indexTokens, " ");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue