Skip to content

Commit

Permalink
First attempt at fixing the record order bug (cosmatic-drift-14#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
dffdff2423 authored Dec 22, 2024
1 parent 2aad51b commit e57e9e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Content.Server/_CD/Records/RecordsSerialization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ private static bool DeserializeBool(JsonElement e, string key, bool def)
private static List<PlayerProvidedCharacterRecords.RecordEntry> DeserializeEntries(List<CDModel.CharacterRecordEntry> entries, CDModel.DbRecordEntryType ty)
{
return entries.Where(e => e.Type == ty)
.OrderBy(e => e.Id) // attempt at fixing the record order changing bug.
.Select(e => new PlayerProvidedCharacterRecords.RecordEntry(e.Title, e.Involved, e.Description))
.ToList();
}
Expand Down

0 comments on commit e57e9e5

Please sign in to comment.