From 769bb5ad48abaf5f87a0e23808a8d8c52a2fb1e1 Mon Sep 17 00:00:00 2001 From: goat <16760685+goaaats@users.noreply.github.com> Date: Sun, 15 Aug 2021 16:47:03 +0200 Subject: [PATCH] fix: invert sorting for NewOrNot --- .../Interface/Internal/Windows/PluginInstallerWindow.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs b/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs index f203f4b90..fb52d4156 100644 --- a/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs +++ b/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs @@ -1296,10 +1296,10 @@ namespace Dalamud.Interface.Internal.Windows this.pluginListInstalled.Sort((p1, p2) => p2.Manifest.LastUpdate.CompareTo(p1.Manifest.LastUpdate)); break; case PluginSortKind.NewOrNot: - this.pluginListAvailable.Sort((p1, p2) => this.WasPluginSeen(p2.InternalName) - .CompareTo(this.WasPluginSeen(p1.InternalName))); - this.pluginListInstalled.Sort((p1, p2) => this.WasPluginSeen(p2.Manifest.InternalName) - .CompareTo(this.WasPluginSeen(p1.Manifest.InternalName))); + this.pluginListAvailable.Sort((p1, p2) => this.WasPluginSeen(p1.InternalName) + .CompareTo(this.WasPluginSeen(p2.InternalName))); + this.pluginListInstalled.Sort((p1, p2) => this.WasPluginSeen(p1.Manifest.InternalName) + .CompareTo(this.WasPluginSeen(p2.Manifest.InternalName))); break; default: throw new InvalidEnumArgumentException("Unknown plugin sort type.");