المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Sorting by various fields



C# Programming
07-01-2009, 05:12 AM
Hi,

What would be the best solution for this?
Suppose I have a list of messages.. each message haves date, from, to, etc.

I would like to allow to sort by any of these fields..

Should I make my own MessageCollection class?
or inherite from List ..or ..?

I guess there are a lot of solutions but I would like to know which one is the most used for this problem (which I'm sure it must be a common problem)

Sorry bad english