Skip to content

Commit

Permalink
Reinstate alphatical ordering of species
Browse files Browse the repository at this point in the history
  • Loading branch information
coldino committed Nov 14, 2018
1 parent 3804722 commit 99a1af2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions LarkatorGUI/ArkReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,16 @@ public async Task PerformConversion(string saveFile)
.ToList();

var tameObjects = creatureObjects.Where(o => !o.IsWild()).GroupBy(o => SpeciesName(o.ClassString));
TamedSpecies.AddRange(tameObjects.Select(o => o.Key).Distinct());
TamedSpecies.AddRange(tameObjects.Select(o => o.Key).Distinct().OrderBy(name => name));
foreach (var group in tameObjects)
TamedDinos.Add(group.Key, group.Select(o => ConvertCreature(o)).ToList());

var wildObjects = creatureObjects.Where(o => o.IsWild()).GroupBy(o => SpeciesName(o.ClassString));
WildSpecies.AddRange(wildObjects.Select(o => o.Key).Distinct());
WildSpecies.AddRange(wildObjects.Select(o => o.Key).Distinct().OrderBy(name => name));
foreach (var group in wildObjects)
WildDinos.Add(group.Key, group.Select(o => ConvertCreature(o)).ToList());

AllSpecies.AddRange(creatureObjects.Select(o => SpeciesName(o.ClassString)).Distinct());
AllSpecies.AddRange(creatureObjects.Select(o => SpeciesName(o.ClassString)).Distinct().OrderBy(name => name));
}

private string SpeciesName(string className)
Expand Down

0 comments on commit 99a1af2

Please sign in to comment.