View Full Version : UITableView data sort

Jul 3, 2010, 02:33 AM
Working on a sample program to show Students data on UITableView.

The data will have Student Name, Join Date, Age, Sex, Roll No, Class etc.
I want to provide Sections according to Student Class and within a section the data should be sorted according to student name.

I also want to provide another view when sections are according to student age and within the section data is student according to the age.

I am not able to figure out the best possible way to do this. Suggestions welcome.

Jul 3, 2010, 09:55 AM
I'd suggest looking into NSMutableArray's various sortUsing... methods.

Jul 4, 2010, 11:47 PM
Thanks dejo :-). That worked just fine.