Is it possible to sort a NSArray collection of UIView's based on their tag?

Posted by Chris on Stack Overflow See other posts from Stack Overflow or by Chris
Published on 2010-04-09T22:02:07Z Indexed on 2010/04/09 22:03 UTC
Read the original article Hit count: 308

Filed under:
|
|
|
|

I've seen examples of something like

[someArray sortUsingSelector:@selector(compare:)];

I'm looking for an example that stores a collection of UIViews and I'd like to sort them in ascending or descending order based on tags I assume programatically when a new UIView is created.

If someone could provide a code example or instructions that would be fantastic

© Stack Overflow or respective owner

Related posts about nsarray

Related posts about sorting