From 4d77bad83d697d29f7cef906ae62704d9fe56c17 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Wed, 25 Jun 2025 21:48:20 +0800 Subject: [PATCH] Sort hotkey info list --- Flow.Launcher/SettingPages/Views/SettingsPaneHotkey.xaml.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Flow.Launcher/SettingPages/Views/SettingsPaneHotkey.xaml.cs b/Flow.Launcher/SettingPages/Views/SettingsPaneHotkey.xaml.cs index d888a6424..d04b48299 100644 --- a/Flow.Launcher/SettingPages/Views/SettingsPaneHotkey.xaml.cs +++ b/Flow.Launcher/SettingPages/Views/SettingsPaneHotkey.xaml.cs @@ -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()