WAYYYYY BETTER

This commit is contained in:
Thomas Forgione 2022-02-25 11:32:34 +01:00
parent 7fd7b56f9a
commit 5d8e380d74
1 changed files with 1 additions and 0 deletions

View File

@ -60,6 +60,7 @@ modelEmojis model =
Search s -> Search s ->
Emoji.categories Emoji.categories
|> List.map Emoji.getEmojis |> List.map Emoji.getEmojis
|> List.map (List.filter (\x -> String.contains s x.name))
|> doubleMap (\x -> ( x, distance s x.name )) |> doubleMap (\x -> ( x, distance s x.name ))
|> List.map (List.sortBy Tuple.second) |> List.map (List.sortBy Tuple.second)
|> mergeBy Tuple.second |> mergeBy Tuple.second