Sort by the mode in an Array in Objective-C iPhone
Posted
by thary
on Stack Overflow
See other posts from Stack Overflow
or by thary
Published on 2010-03-24T01:18:10Z
Indexed on
2010/03/24
1:23 UTC
Read the original article
Hit count: 364
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",
)
© Stack Overflow or respective owner