You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the entity picker prop editor, the results are being returned sorted by the sort field, rather than the picked order.
This ultimately comes down to the fact it calls GetEntitiesById which in turn calls GetPaged on the entity repository with a null sort expression. Because of this, the GetPaged method automatically generates a sort expression based on the configured sort property. We should probably make it so that calls to GetEntitiesById maintain the ID sort order.
The text was updated successfully, but these errors were encountered:
Maintaining the passed in order is quite easy, as you'd just have to sort on the index of the IDs, e.g. entities.OrderBy(e => ids.IndexOf(e.Id)).ToList();
When using the entity picker prop editor, the results are being returned sorted by the sort field, rather than the picked order.
This ultimately comes down to the fact it calls GetEntitiesById which in turn calls GetPaged on the entity repository with a
null
sort expression. Because of this, the GetPaged method automatically generates a sort expression based on the configured sort property. We should probably make it so that calls to GetEntitiesById maintain the ID sort order.The text was updated successfully, but these errors were encountered: