Fix yet another typo

This commit is contained in:
osmarks 2018-07-27 09:57:14 +01:00
parent 5832093468
commit 0d51a01d9d

View File

@ -97,7 +97,7 @@ local function search(query, threshold)
return true, distance
else return false end
end)
return d.sort(results, function(x) return x.extra end) -- sort returned results by closeness to query
return d.sort_by(results, function(x) return x.extra end) -- sort returned results by closeness to query
end
local function fetch_by_location(loc, limit)