From 6da1bbd267672bb38012b51cc3ea4f2d7d07448f Mon Sep 17 00:00:00 2001 From: spiral Date: Mon, 8 Nov 2021 10:49:50 -0500 Subject: [PATCH] feat: sort by display name in short list --- PluralKit.Bot/Commands/Lists/ContextListExt.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/PluralKit.Bot/Commands/Lists/ContextListExt.cs b/PluralKit.Bot/Commands/Lists/ContextListExt.cs index f3f5aca1..72b4f77b 100644 --- a/PluralKit.Bot/Commands/Lists/ContextListExt.cs +++ b/PluralKit.Bot/Commands/Lists/ContextListExt.cs @@ -123,6 +123,12 @@ namespace PluralKit.Bot ret += $"(birthday: {m.BirthdayString})"; break; } + case SortProperty.DisplayName: + { + if (m.DisplayName != null) + ret += $"({m.DisplayName})"; + break; + } case SortProperty.MessageCount: { if (m.MessageCountFor(lookupCtx) is { } count)