Skip to content

Commit

Permalink
Merge #3499 Sort exported modpack relationships by identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
DasSkelett committed Jan 19, 2022
2 parents 7b20733 + 491c2aa commit 0651323
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -35,6 +35,7 @@ All notable changes to this project will be documented in this file.
- [Core] Case insensitive installed file lookup on Windows (#3479 by: HebaruSan; reviewed: DasSkelett)
- [Core] Properly determine the game when cloning instances (#3478 by: DasSkelett; reviewed: HebaruSan)
- [ConsoleUI] Rewrap ConsoleUI textbox for scrollbar and resize (#3514 by: HebaruSan; reviewed: DasSkelett)
- [Core] Sort exported modpack relationships by identifier (#3499 by: HebaruSan; reviewed: DasSkelett)

### Internal

Expand Down
2 changes: 2 additions & 0 deletions Core/Registry/RegistryManager.cs
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 0651323

Please sign in to comment.