better way to put Branding at the top ?

Topics: Customizing Orchard
Jun 11, 2013 at 9:45 AM
Edited Jun 11, 2013 at 3:15 PM
subject ?
first come to my mind ,but ugly (two foreach) :(

zone-header.cshtml :
<div class="zone zone-header" id="zone-header">

    @foreach (var item in @Model)
    {
        if (item.Metadata.Type == "Branding") // Branding renders first
        {
        <div>
            @Display(item)
        </div>
        }
    }

    @foreach (var item in @Model)
    {
        if (item.Metadata.Type != "Branding")
        {
            item.Zone = "header";
            <div>
                @Display(item)
            </div>
        }
    }

</div>