Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions Src/FwCoreDlgs/FwWritingSystemSetupModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,8 @@ public FwWritingSystemSetupModel(IWritingSystemContainer container, ListType typ
private List<WSListItemModel> BuildWorkingList(ICollection<CoreWritingSystemDefinition> allForType, IList<CoreWritingSystemDefinition> currentForType)
{
var list = new List<WSListItemModel>();
// We prefer to display the current ones first, because that's what the code that orders them
// in the lexical data fields does. Usually this happens automatically, but there have
// been cases where the order is different in the two lists, even if they have the same items.
var wssInPreferredOrder = currentForType.Concat(allForType.Except(currentForType));
// Don't reorder the writing systems here even though the lexical data fields are reordered (cf. LT-22136).
var wssInPreferredOrder = allForType;
foreach (var ws in wssInPreferredOrder)
{
list.Add(new WSListItemModel(currentForType.Contains(ws), ws, new CoreWritingSystemDefinition(ws, true)));
Expand Down
Loading