How to reorder MKMapView annotations array
I'd like to reorder the array of annotations shown on a map in order to create a next/prev button for quickly cycling through all annotations (sorted by date) using a simple iterator. As far as I see the annotations array used as a store [worldmap annotations] is not mutable and therefore I cannot reorder it. I tried the following to create a temporary copy of the annotations array, sort it by date and re-attach it. ( worldmap is my MKMapView object) //COPY NSMutableArray *annotationSort = [[NSMutableArray alloc]initWithArray:[worldmap annotations]]; //SORT [annotationSort