diff --git a/JL.Core/Lookup/LookupUtils.cs b/JL.Core/Lookup/LookupUtils.cs index 3fffc8df..f913d750 100644 --- a/JL.Core/Lookup/LookupUtils.cs +++ b/JL.Core/Lookup/LookupUtils.cs @@ -301,7 +301,7 @@ private static List SortLookupResults(IEnumerable lo .ThenBy(static lookupResult => lookupResult.Dict.Priority) .ThenBy(static lookupResult => { - if (lookupResult.PrimarySpellingOrthographyInfoList is not null) + if (lookupResult.PrimarySpellingOrthographyInfoList is not null && lookupResult.PrimarySpelling == lookupResult.MatchedText) { for (int i = 0; i < lookupResult.PrimarySpellingOrthographyInfoList.Length; i++) {