Custom Theme - Terms Order result

Topics: Administration, Customizing Orchard
Sep 18, 2013 at 1:37 PM
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:
@using Orchard.Utility.Extensions;
@using Orchard.ContentManagement;

    @foreach (var item in Model.Items)
        var TermTitle = item.Content.Items[3].Terms[0].Name;