Skip to content

Commit 0cc8d54

Browse files
authored
Alphabetical sorting of template files in the New menu. (#11652)
1 parent 376f810 commit 0cc8d54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Files.App/Shell/ShellNewMenuHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static async Task<List<ShellNewEntry>> GetNewContextMenuEntries()
3636
if (!newMenuItems.Any(x => ".txt".Equals(x.Extension, StringComparison.OrdinalIgnoreCase)))
3737
newMenuItems.Add(await CreateShellNewEntry(".txt", null, null, null));
3838

39-
return newMenuItems;
39+
return newMenuItems.OrderBy(item => item.Name).ToList();
4040
}
4141

4242
public static async Task<ShellNewEntry> GetNewContextMenuEntryForType(string extension)

0 commit comments

Comments
 (0)