Re: complex List<> sorting
- From: "Tem" <tem1232@xxxxxxxxx>
- Date: Mon, 14 Apr 2008 00:43:23 -0700
I've decided to use another method to store the data.
Thank you guys for your help.
"Tem" <tem1232@xxxxxxxxx> wrote in message news:OtxgudTnIHA.1164@xxxxxxxxxxxxxxxxxxxxxxx
I have an Interface InterfaceBase, and two classes Type 1 and Type 2 that implements InterfaceBase
Class Type1 has a string property Title
Class Type2 has a string property Title and an int property Ordering
List<BaseC> list
I would like to sort the list by the value of Ordering (Type 1's Ordering is always 0) and a secondary order by the string property Title alphabetically.
I tried writing my own Comparision code, it doesn't seem to work
Thanks for your help
Tem
.
- References:
- complex List<> sorting
- From: Tem
- complex List<> sorting
- Prev by Date: Re: complex List<> sorting
- Next by Date: Re: share a structure array containing multidimensional char array
- Previous by thread: Re: complex List<> sorting
- Next by thread: Re: using OUT in a method
- Index(es):
Relevant Pages
|