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.