// ---------------------------------------------------------------------------------------- /// <!-- GetMatchList --> /// <summary> /// Orders the list by the sort profile /// </summary> /// <param name="sortProfile"></param> /// <returns></returns> public List <IAmAnEndemeItem> GetMatchList(string sortProfile, bool rawSource) { List <IAmAnEndemeItem> list = new List <IAmAnEndemeItem>(); if (Regex.IsMatch(sortProfile, "[*!]")) { EndemeDefinition part = RegField.PartNotHaving(RegField.EnRef["DSVQAHMU"]); list = part.OrderBy(new EndemeProfile(sortProfile, RegField.EnRef)).ToList(); } else { EndemeItem item = EndemeProfile.BuildSegment(sortProfile, ListField.EnRef, rawSource); list = ListField.OrderBy(item.ItemEndeme).ToList(); } return(list); }
//public void Add(EndemeItem item) //{ // ListField.Add(item); //} //public void Add(EndemeObject item) //{ // RegField.Add(item); //} public EndemeList OrderBy(Endeme en) { return(ListField.OrderBy(en)); }