Skip to content

Commit

Permalink
Sort kbts
Browse files Browse the repository at this point in the history
  • Loading branch information
Enkidu93 committed Nov 27, 2024
1 parent c16788d commit 1699497
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/SIL.Machine/Corpora/ParatextProjectTermsParserBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ protected ParatextProjectTermsParserBase(ParatextProjectSettingsParserBase setti
{
return termsRenderings
.Concat(termsGlosses.Where(kvp => !termsRenderings.ContainsKey(kvp.Key)))
.Select(kvp => (kvp.Key, (IReadOnlyList<string>)kvp.Value.ToList()));
.Select(kvp => (kvp.Key, (IReadOnlyList<string>)kvp.Value.ToList()))
.OrderBy(glosses => glosses.Key);
}
return new List<(string, IReadOnlyList<string>)>();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void TestGetKeyTermsFromTermsLocalizations_NoTermRenderings()
);
IEnumerable<(string TermId, IReadOnlyList<string> Glosses)> terms = env.GetGlosses();
Assert.That(terms.Count, Is.EqualTo(5726));
Assert.That(string.Join(" ", terms.First().Glosses), Is.EqualTo("Abagtha"));
Assert.That(string.Join(" ", terms.First().Glosses), Is.EqualTo("Aaron"));
}

[Test]
Expand Down Expand Up @@ -139,8 +139,7 @@ public void TestGetKeyTermsFromTermsLocalizations_TermRenderingsExists_PreferLoc
);
IReadOnlyList<(string TermId, IReadOnlyList<string> Glosses)> terms = env.GetGlosses().ToList();
Assert.That(terms.Count, Is.EqualTo(5726));
Assert.That(string.Join(" ", terms[1].Glosses), Is.EqualTo("Abagtha"));
Assert.That(string.Join(" ", terms[2].Glosses), Is.EqualTo("Abi"));
Assert.That(string.Join(" ", terms[1].Glosses), Is.EqualTo("Aaron"));
}

[Test]
Expand Down

0 comments on commit 1699497

Please sign in to comment.