Order tag inputs by the label

main
Pat Hartl 2023-12-04 01:40:43 -06:00
parent c735556281
commit b87fe92c63
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
<Select Mode="tags" TItem="Guid" TItemValue="Guid" @bind-Values="@SelectedValues" OnSelectedItemsChanged="OnSelectedItemsChanged" EnableSearch> <Select Mode="tags" TItem="Guid" TItemValue="Guid" @bind-Values="@SelectedValues" OnSelectedItemsChanged="OnSelectedItemsChanged" EnableSearch>
<SelectOptions> <SelectOptions>
@foreach (var entity in Entities) @foreach (var entity in Entities.OrderBy(OptionLabelSelector))
{ {
<SelectOption TItemValue="Guid" TItem="Guid" Value="@entity.Id" Label="@OptionLabelSelector.Invoke(entity)" /> <SelectOption TItemValue="Guid" TItem="Guid" Value="@entity.Id" Label="@OptionLabelSelector.Invoke(entity)" />
} }