Grid Posts on top, regular list on bottom

@*---------------------here's the code------------------------

<p class="pull-right"><a href="/newsandblogsbytopic">browse by topic or author <i class="fa fa-long-arrow-right"></i></a></p>
@BRT.Index(tableId:"Content",viewId:"News",
pageSize:30,fields: new[] {"Title","PubDate","Body","Summary","Authors","PrimaryImage"}, template:
@<div>
    <div class="row">
    @{
        int recnum = 3;
    }
    @foreach(EngineRecord record in item.List) {
    
        if (recnum % 3 == 0) {
            @BRT.Raw("</div>")
            @BRT.Raw("<div class='row'>")
        }
        if(recnum<15 && item.List.PageNumber==1){
            <div class="col-sm-4">
                <div class="grid-item">
                    @if (record.GetFiles("PrimaryImage").Count==1) {
                        <div class="gridimgdiv"><a href="/postdetail/@record.Href"><img src="@record.GetFiles("PrimaryImage")[0].Url?width=263&height=175&mode=crop" /></a>
                            @if(!@record.IsDBNull("PubDate")){<div class="grid-date">@record.GetDateTime("PubDate").ToString("MMMM dd")</div>}     
                        </div>
                    }
                    else{
                        <div class="gridimgdiv"><a href="/postdetail/@record.Href"><img src="http://placehold.it/263x175" /></a>
                            @if(!@record.IsDBNull("PubDate")){<div class="grid-date">@record.GetDateTime("PubDate").ToString("MMMM dd")</div>}     
                        </div>                        
                    }
                    <h4><a href="/postdetail/@record.Href">@record["Title"]</a></h4>
                </div>
            </div>
        }
        else {            
            
            <div class="col-sm-12">
                <h4><a href="/postdetail/@record.Href">@record["Title"]</a></h4>
                @if(!@record.IsDBNull("PubDate")){
                    <div class="text-muted">@record.GetDateTime("PubDate").ToString("MMMM dd yyyy")</div>
                }
                @if(@record.IsDBNull("Summary")){
                    @BRT.Raw(record.GetString("Body").Summarize(150))
                }
                else
                {
                    @BRT.Raw(record.GetString("Summary").Summarize(150))
                }
                
                <hr/>
            </div>
            
        }
        recnum+=1;
    
    }        
    </div>
    @item.Pager
</div>)

----------------------- end of comment out *@