フィールド「date」でNSMutableArrayを並べ替えていますが、時間が考慮されていません。日付が同じ場合でも、時刻はランダムに並べ替えられます。私は何が間違っているのですか?フィールド「date」のタイプはNSDateです。
NSSortDescriptor *dateDescriptor =
[[NSSortDescriptor alloc] initWithKey:@"date" ascending:YES];
NSArray *descriptors = [NSArray arrayWithObjects:dateDescriptor, nil];
[self.player1ScoreT sortedArrayUsingDescriptors:descriptors];
私の出力は次のとおりです:
2012-11-25 11:01:00 +0000
2012-11-25 11:00:56 +0000
2012-11-25 11:00:54 +0000
2012-11-25 11:01:03 +0000
変.....