Sort hotkey info list

This commit is contained in:
Jack251970 2025-06-25 21:48:20 +08:00
parent 8abd5318b3
commit 4d77bad83d

View file

@ -1,4 +1,5 @@
using System.Windows;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using CommunityToolkit.Mvvm.DependencyInjection;
@ -50,6 +51,8 @@ public partial class SettingsPaneHotkey
{
Orientation = Orientation.Vertical
};
var sortedHotkeyInfo = hotkeyInfo.OrderBy(h => h.Id).ToList();
foreach (var hotkey in hotkeyInfo)
{
var card = new Card()