diff --git a/Distance.CustomCar/Data/Car/CarAssetBundles.cs b/Distance.CustomCar/Data/Car/CarAssetBundles.cs index b12f7d4..e3f5e2e 100644 --- a/Distance.CustomCar/Data/Car/CarAssetBundles.cs +++ b/Distance.CustomCar/Data/Car/CarAssetBundles.cs @@ -2,6 +2,7 @@ using System; using System.Collections.Generic; using System.IO; +using System.Linq; using UnityEngine; namespace Distance.CustomCar.Data.Car @@ -19,7 +20,7 @@ public CarAssetBundles(DirectoryInfo assetsDirectory, CarFactory factory) public void LoadAll() { - foreach (FileInfo file in assetsDirectory_.GetFiles("*", SearchOption.AllDirectories)) + foreach (FileInfo file in assetsDirectory_.GetFiles("*", SearchOption.AllDirectories).OrderBy(x => x.Name)) { LoadAssetsFile(file); }