1
0
Fork 0

Sort tracks by name, so they are easier to find in the config

This commit is contained in:
ivan tkachenko 2025-08-11 19:11:40 +03:00
parent 8842005898
commit a950093f8e
1 changed files with 3 additions and 0 deletions

View File

@ -555,6 +555,9 @@ namespace MuzikaGromche
void Awake() void Awake()
{ {
// Sort in place by name
Array.Sort(Tracks.Select(track => track.Name).ToArray(), Tracks);
string dir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); string dir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
UnityWebRequest[] requests = new UnityWebRequest[Tracks.Length * 2]; UnityWebRequest[] requests = new UnityWebRequest[Tracks.Length * 2];
for (int i = 0; i < Tracks.Length; i++) for (int i = 0; i < Tracks.Length; i++)