Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
rampaa committed Sep 28, 2024
1 parent c17f7d1 commit e669af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JL.Core/Lookup/LookupUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ private static List<LookupResult> SortLookupResults(IEnumerable<LookupResult> lo
.OrderByDescending(static lookupResult => lookupResult.MatchedText.Length)
.ThenByDescending(static lookupResult => lookupResult.PrimarySpelling == lookupResult.MatchedText)
.ThenByDescending(static lookupResult => lookupResult.Readings?.Contains(lookupResult.MatchedText) ?? false)
.ThenByDescending(static lookupResult => lookupResult.DeconjugationProcess is null ? int.MaxValue : lookupResult.PrimarySpelling.Length)
.ThenBy(static lookupResult => lookupResult.Dict.Priority)
.ThenBy(static lookupResult =>
{
Expand Down Expand Up @@ -409,7 +410,6 @@ private static List<LookupResult> SortLookupResults(IEnumerable<LookupResult> lo

return 1;
})
.ThenByDescending(static lookupResult => lookupResult.PrimarySpelling.Length)
.ThenBy(static lookupResult =>
{
if (lookupResult.Frequencies?.Count > 0)
Expand Down

0 comments on commit e669af9

Please sign in to comment.