Sort by the mode in an Array in Objective-C iPhone
- by thary
If I have an NSArray with some values in them. Is there a way using descriptors to sort it by the most frequent number in the array first and the least frequent number at the end,
Array has(
"3",
"2",
"1",
"3",
"3",
"7",
)
to
Array has(
"3",
"3",
"3",
"1",
"2",
"7",
)