Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
* Fixed reverse alphanum ordering being applied
Browse files Browse the repository at this point in the history
  • Loading branch information
Aragas committed Dec 25, 2022
1 parent 4a50537 commit f3e6e4f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/common.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<!--Development Variables-->
<PropertyGroup>
<Version>1.14.7</Version>
<Version>1.14.8</Version>
<HarmonyVersion>2.2.2</HarmonyVersion>
<BUTRSharedVersion>3.0.0.126</BUTRSharedVersion>
<BUTRModuleManagerVersion>5.0.163</BUTRModuleManagerVersion>
Expand Down
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
---------------------------------------------------------------------------------------------------
Version: 1.14.8
Game Versions: v1.0.0,v1.0.1,v1.0.2
* Fixed reverse alphanum ordering being applied
---------------------------------------------------------------------------------------------------
Version: 1.14.7
Game Versions: v1.0.0,v1.0.1,v1.0.2
* Fixed crash when module id was not present
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ static IEnumerable<ModuleInfoExtended> Sort(IEnumerable<ModuleInfoExtended> sour
{
var orderedModules = source
.OrderByDescending(x => x.IsOfficial)
.ThenByDescending(x => x.Id, new AlphanumComparatorFast())
.ThenBy(x => x.Id, new AlphanumComparatorFast())
.ToArray();

return ModuleSorter.TopologySort(orderedModules, module => ModuleUtilities.GetDependencies(orderedModules, module));
Expand Down

0 comments on commit f3e6e4f

Please sign in to comment.