IList < FileDataInfo > list = ifileManage.Search(searchFile).Where(c => c.FileTypeID == 1 || c.FileTypeID == 2).
OrderByDescending(c =>
new
{ ProjectName = c.FileTypeID == 1 ? (ProjectUtils.GetProjectName(c.RefererID)) : ProjectUtils.GetProjectName(ProjectUtils.GetProjectSub(c.RefererID).ProjectID) }.ProjectName).ToList();