Fuzzy matching with good sorting