How to retrieve a record in order
hi all i have written query likevar selectedPo = selectedPos.OrderBy(a => a.POLine_AMS.OrderBy(c => c.ODB001).Select(c => c.ODB001).FirstOrDefault());
since for ODB001 1 are 3 and 2 are 2 they are coming like 1,2,1,2
it has to come like 1,1,2,2 this linenum values