I have an instance of NSArray with instances of NSArray inside. The inner arrays contain only instances of NSString. I need to sort the nested arrays alphabetically by a selected index.
E.g.
@[
@[@"test",@"B",@"test2"],
@[@"bla",@"A",@"bla"],
@[@"xyz",@"C",@"123"]
]
User selects index 1, Ascending sort. Result should be:
@[
@[@"bla",@"A",@"bla"],
@[@"test",@"B",@"test2"],
@[@"xyz",@"C",@"123"]
]