From c4ca06d5e59ae46f5c52b7fe043357a014c3040e Mon Sep 17 00:00:00 2001 From: qianlifeng Date: Thu, 22 Jan 2015 20:24:15 +0800 Subject: [PATCH] Sort plugin and themes in setting dialog --- Wox.Core/Plugin/PluginManager.cs | 2 +- Wox.Core/Theme/Theme.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Wox.Core/Plugin/PluginManager.cs b/Wox.Core/Plugin/PluginManager.cs index dcb455c703..e8c942f950 100644 --- a/Wox.Core/Plugin/PluginManager.cs +++ b/Wox.Core/Plugin/PluginManager.cs @@ -109,7 +109,7 @@ namespace Wox.Core.Plugin { get { - return plugins; + return plugins.OrderBy(o => o.Metadata.Name).ToList(); } } diff --git a/Wox.Core/Theme/Theme.cs b/Wox.Core/Theme/Theme.cs index 78bea898d5..b20e95cdd0 100644 --- a/Wox.Core/Theme/Theme.cs +++ b/Wox.Core/Theme/Theme.cs @@ -102,7 +102,7 @@ namespace Wox.Core.Theme .Where(filePath => filePath.EndsWith(".xaml") && !filePath.EndsWith("Base.xaml")) .ToList()); } - return themes; + return themes.OrderBy(o => o).ToList(); } private string GetThemePath(string themeName)