7
On this topic: How to sort list with complex object by one of its properties? is explained as ordering by a property, but as ordering by two?
Taking into account the following product class:
+-------------------+--------------------+ 
| Produto                                | 
+-------------------+--------------------+ 
| Código            | int                | 
| Nome              | string             | 
| Preço             | double             | 
| Categoria         | Categoria          | 
+-------------------+--------------------+ 
And the class category
+-------------------+--------------------+ 
| Categoria                              | 
+-------------------+--------------------+ 
| Código            | int                | 
| Nome              | string             | 
+-------------------+--------------------+ 
And imagining a list of products.
How can I sort the list by alphabetical order of your category name, followed by alphabetical order of your name? You can use the IComparer?
You couldn’t use LINQ?
– iuristona
I don’t know this library, it already has a function that does it in it?
– Latrova