I have the following code listing Child Items within a Parent Widget Template.
'<%# Eval("ChildItems") %>'
I would now like to order the Child Items by a custom property, i.e. SortOrder, with something like the following which calls a helper function (see below)
'<%# Helpers.SortOrder(Eval("ChildItems")) %>'
Using the helper function below, I keep getting the following error " Database mapped field uses different type 'System.Nullable' "
var collection = (IQueryable<DynamicContent>) dynamicContent;
.OrderBy(x => x.GetValue<
Am I going along the right lines?