I'm creating a Custom Theme.
I have a custom ContentType with 2 Taxonomies:
TEAMS(barcellona, real madrid, etc..),
ROLES(keeper, defender, etc..)
To roles I have inserted a weight: keeper(100), defender(90), etc
I have a Projection (TEAM) "Barcellona" with Query (List of Barcellona Players) and all its ok but I want to see the list of Players with weight Order. With Custom Query it is not possible to create order and now I want to create by Theme.
I have created alternate List-Team.cshtml and now I can work on code.
I started with this code but I don't know how to cast the model for order:
@foreach (var item in Model.Items)
var TermTitle = item.Content.Items.Terms.Name;