数组mutArr里面存放的是模型lyric,模型lyric有个属性是time,要求:对数组mutArr进行排序?
// 排序:依靠时间来排序
// ascending 是否升序
NSSortDescriptor *sort = [NSSortDescriptor sortDescriptorWithKey:@"time" ascending:YES];
NSArray *arr = [mutArr sortedArrayUsingDescriptors:@[sort]];