UITableView data sort

Discussion in 'iPhone/iPad Programming' started by McBgnr, Jul 3, 2010.

  1. macrumors regular

    Joined:
    Apr 13, 2009
    #1
    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. Moderator

    dejo

    Staff Member

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

    Joined:
    Apr 13, 2009
    #3
    Thanks dejo :). That worked just fine.
     

Share This Page