I have three arrays
. They are name, birthdates and remaining days like below:
name birth
Put each row into a dictionary, and out those dictionaries into an array. Then sort your away using a predicate or sort block. If you want an array containing just the sorted names for example, you could use [ array valueForKeyPath:@"name" ]
Array looks like:
[
{ @"name" : ...,
@"birthdate" : ...birthdate...,
@"remaining" : ...days remaining... } ,
{...},
{...}
]