From 91ddf94f9278a5ffdbdf96cb8e96a6319b66f156 Mon Sep 17 00:00:00 2001 From: andy840119 Date: Tue, 8 Mar 2022 21:57:20 +0800 Subject: [PATCH] force use the iList for able to return the order with format like array or list. --- .../IO/Serialization/Converters/TimeTagsConverter.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osu.Game.Rulesets.Karaoke/IO/Serialization/Converters/TimeTagsConverter.cs b/osu.Game.Rulesets.Karaoke/IO/Serialization/Converters/TimeTagsConverter.cs index faa5cd9a5..da151f353 100644 --- a/osu.Game.Rulesets.Karaoke/IO/Serialization/Converters/TimeTagsConverter.cs +++ b/osu.Game.Rulesets.Karaoke/IO/Serialization/Converters/TimeTagsConverter.cs @@ -2,6 +2,7 @@ // See the LICENCE file in the repository root for full licence text. using System.Collections.Generic; +using System.Linq; using osu.Game.Rulesets.Karaoke.Objects; using osu.Game.Rulesets.Karaoke.Utils; @@ -10,6 +11,6 @@ namespace osu.Game.Rulesets.Karaoke.IO.Serialization.Converters public class TimeTagsConverter : SortableJsonConvertor { protected override IList GetSortedValue(IEnumerable objects) - => TimeTagsUtils.Sort(objects); + => TimeTagsUtils.Sort(objects).ToArray(); } }