I feel like this is simple but I just can't wrap my head around it. I have an array of days of the week that a user can select against:
NSArray * daysOfTheWeek = [NSArray arrayWithObjects:@"sunday", @"monday", @"tuesday", @"wednesday", @"thursday", @"friday", @"saturday", nil];
I as the toggle the days on and off, I'd like to sort their NSArray fo selected days against the dayOfTheWeek NSArray. So if a user has:
NSArray * userDays = [NSArray arrayWithObjects:@"thursday", @"monday", @"friday"];
I want to sort this so that its monday, thursday, friday.
I'd seem some of the similar questions posted but none were clear enough for me to know how I could apply them to this. Could be my lack of sleep :)
Thank you!