What's the most efficient way to sort objects in an NSSet
/NSMutableSet
based on a property of the objects in the set? Right now the way I am doing it is by iterating through each object, add them to a NSMutableArray
, and sort that array with NSSortDescriptor
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…