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
I have a complex object that I would like to perform a 'natural' sort against and I've come to the conclusion that I need create a custom sort method (ISieveCustomSortMethods).
My object looks something like this (I'm just using a basic representation here) ...
I would like to perform a natural sort on the subEntities title field. I realise that subEntites is an array, but I only need to perform the sort against the first sub-entity.
As an example, if I have a list of titles like - Title 1, Title 101, Book, Title 2, Study
... then the natural sort will produce a result like - Book, Study, Title 1, Title 2, Title 101
I'm wondering if anyone has solved a problem like this before, or may have some suggestions? I should add, that I'm trying to do this in conjunction with Entity Framework Core.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a complex object that I would like to perform a 'natural' sort against and I've come to the conclusion that I need create a custom sort method (
ISieveCustomSortMethods
).My object looks something like this (I'm just using a basic representation here) ...
I would like to perform a natural sort on the
subEntities
title field. I realise thatsubEntites
is an array, but I only need to perform the sort against the first sub-entity.As an example, if I have a list of titles like - Title 1, Title 101, Book, Title 2, Study
... then the natural sort will produce a result like - Book, Study, Title 1, Title 2, Title 101
I'm wondering if anyone has solved a problem like this before, or may have some suggestions? I should add, that I'm trying to do this in conjunction with Entity Framework Core.
Beta Was this translation helpful? Give feedback.
All reactions