标签:ios
NSSortDescriptor *sortDescriptor1 = [NSSortDescriptor sortDescriptorWithKey:@"distanceValue" ascending:YES]; NSArray *tempArray = [goodsInfoArray sortedArrayUsingDescriptors:[NSArray arrayWithObjects:sortDescriptor1, nil]];
NSArray中存的是实体时的排序,布布扣,bubuko.com
标签:ios
原文地址:http://blog.csdn.net/rainlesvio/article/details/38330755