fix: invert sorting for NewOrNot

This commit is contained in:
goat 2021-08-15 16:47:03 +02:00
parent b6f194cb98
commit 769bb5ad48
No known key found for this signature in database
GPG key ID: F18F057873895461

View file

@ -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.");