Skip to content

Commit

Permalink
Sort exported modpack relationships by identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Dec 27, 2021
1 parent 136c26d commit 491c2aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Core/Registry/RegistryManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,8 @@ public CkanModule GenerateModpack(bool recommends = false, bool with_versions =
return false;
}
})
// Case insensitive sort by identifier
.OrderBy(kvp => kvp.Key, StringComparer.OrdinalIgnoreCase)
.Select(kvp => (RelationshipDescriptor) new ModuleRelationshipDescriptor()
{
name = kvp.Key,
Expand Down

0 comments on commit 491c2aa

Please sign in to comment.