WAYYYYY BETTER
This commit is contained in:
parent
7fd7b56f9a
commit
5d8e380d74
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue