1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-13 16:13:34 +08:00

make list of tournaments in SetupScreen dropdown alphabetically sorted

This commit is contained in:
Dao Heng Liu 2023-07-22 09:59:00 +01:00
parent bc46502deb
commit ef74084a2e
No known key found for this signature in database
GPG Key ID: 76B315615CDDAFDE

View File

@ -1,7 +1,9 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using System.Linq;
using osu.Framework.Bindables;
using osu.Framework.Logging;
using osu.Framework.Platform;
@ -43,6 +45,6 @@ namespace osu.Game.Tournament.IO
Logger.Log("Changing tournament storage: " + GetFullPath(string.Empty));
}
public IEnumerable<string> ListTournaments() => AllTournaments.GetDirectories(string.Empty);
public IEnumerable<string> ListTournaments() => AllTournaments.GetDirectories(string.Empty).OrderBy(directory => directory, StringComparer.CurrentCultureIgnoreCase);
}
}