would like to sort some objects (have some properties like ObjectName,
ValidFrom, ValidTo, Code,..) I would like sort this items via specific order,
for example:
I have a collection of object with Code N, V, C, S, Ts, Tv, B and need o
sort in this order V, N, C, Ts, Tv, B, S.
Is this possible?
Jeff Gaines - 17 Jul 2006 14:45 GMT
> would like to sort some objects (have some properties like ObjectName,
>ValidFrom, ValidTo, Code,..) I would like sort this items via specific
[quoted text clipped - 3 lines]
>sort in this order V, N, C, Ts, Tv, B, S.
>Is this possible?
Can you add a property called, say, 'SortOrder' and sort on that?

Signature
Jeff Gaines
Lloyd Dupont - 17 Jul 2006 15:30 GMT
What about?
List<T>public void Sort (
Comparison<T> comparison
)
> would like to sort some objects (have some properties like ObjectName,
> ValidFrom, ValidTo, Code,..) I would like sort this items via specific order,
> for example:
> I have a collection of object with Code N, V, C, S, Ts, Tv, B and need o
> sort in this order V, N, C, Ts, Tv, B, S.
> Is this possible?