I have an object model MyObject that contains a nullable byte as one of its properties.
How do I sort a list of MyObjects on this key so that the list is ordered by ascending based on the values of this properties, with the objects that have the null appearing last.
Thanks for your suggestions.
Linqs
OrderBycomes with an overload which accepts anIComparer. This way you can sort the objects all the way you want.Quick example:
Use it