i have an NSArray which contains custom objects, the objects have an NSString property, like this :
@interface Reservation : NSObject{
int _id;
NSString *dateAndHour;
....
}
example :
Reservation *reserv = [Reservation alloc]init];
reserrv._id=1;
reservation.dateAndHour =@"03/09/1983 07:30 PM";
I have an NSArray which contains objects Reservation, now i would like to sort my array with the field dateAndHour, how i can do this please. thanks for your aswer