Skip to content

Commit

Permalink
Alphabetical sorting of template files in the New menu. (#11652)
Browse files Browse the repository at this point in the history
  • Loading branch information
cinqmilleans authored Mar 10, 2023
1 parent 376f810 commit 0cc8d54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Files.App/Shell/ShellNewMenuHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static async Task<List<ShellNewEntry>> GetNewContextMenuEntries()
if (!newMenuItems.Any(x => ".txt".Equals(x.Extension, StringComparison.OrdinalIgnoreCase)))
newMenuItems.Add(await CreateShellNewEntry(".txt", null, null, null));

return newMenuItems;
return newMenuItems.OrderBy(item => item.Name).ToList();
}

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

0 comments on commit 0cc8d54

Please sign in to comment.