I have 2 NSMutableArray array. First array is storing UserID and second array is storing related UserName. Here is dummy structure of arrays.
First array= {“1″,”5″,”2″,”8”};
Second array={“Akash”, “Martin”, “Hui”, “Ajay”};
I want to sort Second in alphabetical order but respected UserID also should be sort.
You should use NSDictionary for this task. Your sorting process will be easier then. You can use key value pair mechanism of NSDictionary like key is ID and value is name.