I am currently saving array with custom objects using archiever
NSData *data = [NSKeyedArchiver archivedDataWithRootObject:cache];
[[NSUserDefaults standardUserDefaults] setObject:data forKey:@"KP_SEARCH_CACHE"];
[[NSUserDefaults standardUserDefaults]synchronize];
But the order of the objects when I retrieve the array is random. i need to retain the original order. It would be of great help if someone could recommend something