Sorting Arrays descending with integers -


i working on assignment , need guidance. below array patient class trying sort pntid number; user inputs in textbox. im sure issue somewhere in sort method. thank you

 patient[] patients = new patient[6]             {new patient(pntname1.text,pntid1),             new patient(pntname2.text,pntid2),             new patient(pntname3.text,pntid3),             new patient (pntname4.text,pntid4),             new patient (pntname5.text,pntid5)};                 array.sort(patients);             int[] sortedcopy = patients.orderby(i => i).toarray(); 


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -