ordered Discord channels in Channel select

This commit is contained in:
Sarah Faey 2022-12-11 10:08:26 +01:00
parent 63d59273a6
commit 3d72cf2d29
4 changed files with 7 additions and 4 deletions

View file

@ -21,7 +21,7 @@
@{
List<DiscordChannel> channels = _discordServers.FirstOrDefault(s => s.Id == _serverId, new DiscordServer()).Channels;
<option value="0">No Server Logs</option>
@foreach(DiscordChannel item in channels)
@foreach(DiscordChannel item in channels.OrderBy(c => c.Name))
{
<option value="@item.Id">@item.Name</option>
}