Skip to content

Commit

Permalink
[BetterSceneLoader] Sort categories
Browse files Browse the repository at this point in the history
  • Loading branch information
Keelhauled committed Apr 21, 2024
1 parent a8e6887 commit f2b50f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BetterSceneLoader.Core/ImageGrid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ public void CreateUI(string name, int sortingOrder, string titleText)
if(!File.Exists(defaultPath))
Directory.CreateDirectory(defaultPath);

var folders = Directory.GetDirectories(defaultPath, "*", SearchOption.AllDirectories).ToList();
var folders = Directory.GetDirectories(defaultPath, "*", SearchOption.AllDirectories).OrderBy(x => x).ToList();
folders.Insert(0, defaultPath);

return folders.Select(x =>
Expand Down

0 comments on commit f2b50f4

Please sign in to comment.