I have a page that displays Companies, they all are appart of groups. Here is the display of the page:
The first column contains the names of the groupes and the second of the companies.
What I want to achieve is to order the list first by Group name alphabetically (which has been done) and THEN order the items that are appart of one group alphabetically between each other.
I order the Groups like such :
return View(_service.List().OrderBy(o => o.GroupId).ToList());
Where _service.List()
gives the list of Groups.
How can I achieve it?