@functions
{
    private string GetOrderField(IEnumerable<dynamic> dataList)
    {
        string rv = "";
        IEnumerable<dynamic> rows = dataList.Where(c => c.OrderItem == 1);
        string name, remark;
        foreach (dynamic item in rows)
        {
            name = item.Name;
            remark = item.Remark;
            rv += "<option value=\"" + name + " asc\">" + remark + "↑</option><option value =\"" + name + " desc\">" + remark + "↓</option>";
        }
        return rv;
    }
}
@{
    IEnumerable<dynamic> dataList = Model;
    string options = "";
    if(dataList != null)
    {
        options = GetOrderField(dataList);
    }
    @Html.Raw(options)
}


