I'm following you there but how do I pull out two properties and sort the list based on those two properties. That is what I'm not following.
You can always use my DynamicComparer, which generates an IComparable-compatible method when handed an arbitrary string of property/field names (with/without DESC as needed). This generates a DynamicMethod that is near-native in speed of comparison. I've got a good write-up of it in a couple blog posts [0], [1], and the downloads in DynamicComparer.zip[2] [0] http://musingmarc.blogspot.com/2006/02/dynamic-sorting-of-objects-using.html [1] http://musingmarc.blogspot.com/2006/03/extending-dynamic-sorting-of-objects.html [2] http://idisposable.googlepages.com/downloads -- "We do not have the luxury of making that risky assumption that people will not be affected by the potential change. I know this can be frustrating for you as it is for us. Thanks for your understanding in this matter.." --Some misguided soul at Microsoft Marc C. Brooks http://musingmarc.blogspot.com =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com
