I have SQLite Database(DB) and made this to model class and taken the data of DB in NSMutableArray. My DB is similar to this DB.
StudentName | RegisterNumber | DatesOfJoin(DoJ)
I am displaying the DoJ in tableView successfully, but I wanna sort the DatesOfJoin in Ascending order and Descending order in tableView.
Any help would be appreciated and Thanks you in advance.
I have SQLite Database(DB) and made this to model class and taken the data
Share
You can use
NSSortDescriptorandsortUsingDescriptors:sortDescriptorsto sort a mutable array.