Jose C Gomez
T: 904.469.1524 mobile
Quis custodiet ipsos custodes?
On Mon, Aug 22, 2016 at 12:51 PM, mvissuet@... [vantage] <vantage@yahoogroups.com> wrote:Â<div> <p></p><p><span></span></p><p>I am writing a BPM that looks for the next open operation on the job...</p><p><br></p><p>the BPM reads something like this:</p><p><br></p><p>   JobOper = (from JobOper_Row in Db.JobOper<br>              where JobOper_Row.Company == Session.CompanyID &&<br>              string.Compare(JobOper_Row. JobNum, ttJobOperRow.JobNum, true) == 0 &&<br>              JobOper_Row.OprSeq > ttJobOperRow.OprSeq<br>              OrderBy JobOper.OprSeq<br>              select JobOper_Row).FirstOrDefault();</p><p><br></p><p><br></p><p>That is the code I got from Epicor's ABL code convertor... however, the "OrderBy" line does not compile.</p><p>What is the correct syntax for sorting records?</p><p></p> </div> <div style="color:#fff;min-height:0;"></div>