Open
Description
Describe the bug
In the process of migrating from Konstrukt to UI Builder, it is no longer possible to use a nullable property as the sort property.
Eg. I have this collection:
.AddCollection<SentMailsPoco>(x => x.Id, "Sent Mail", "Sent Mails", "Sent Mails", "icon-message", "icon-message",
collectionConfig => collectionConfig
.SetNameProperty(p => p.Subject)
.DisableCreate()
.DisableUpdate()
.AddDataView("Sent Emails", p => p.IsSent)
.AddDataView("Outbox", p => !p.IsSent)
.AddSearchableProperty(p => p.FromName)
.AddSearchableProperty(p => p.FromEmail)
.AddSearchableProperty(p => p.ToName)
.AddSearchableProperty(p => p.ToEmail)
.AddSearchableProperty(p => p.Body)
.SetSortProperty(p => p.SentUtcDate, SortDirection.Descending)
.ListView(listViewConfig => listViewConfig
.AddField(p => p.FromEmail)
.AddField(p => p.FromName)
.AddField(p => p.ToEmail)
.AddField(p => p.ToName)
.AddField(p => p.CreatedUtcDate)
.AddField(p => p.SentUtcDate)
.SetPageSize(100))
It complains that SentUtcDate is nullable.
This used to work in Konstrukt. How can I make it work in UI Builder (13.1.7)?
Additional context
Add any other context about the problem here.
This item has been added to our backlog AB#50013