UITableView data sort

Discussion in 'iOS Programming' started by McBgnr, Jul 3, 2010.

  1. McBgnr macrumors regular

    Apr 13, 2009
    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.
  2. dejo Moderator


    Staff Member

    Sep 2, 2004
    The Centennial State
    I'd suggest looking into NSMutableArray's various sortUsing... methods.
  3. McBgnr thread starter macrumors regular

    Apr 13, 2009

Share This Page