Search through items using distance to allow partial matches

Allow typos or “partial” matches when searching through several items.

E.g.

user1: [email protected]
user2: [email protected]
search: user2345
matches: 0

By computing the distance (e.g. Levenshtein distance) this would show:

user1: [email protected]
user2: [email protected]
search: user2345
matches: user1,user2

Note that the better the match the smaller the distance (better matches should be shown first).