bengardner/uncrustify — pull request #217 by bslack (2013-11-12 23:12:39+00:00)
Title: Adds support for sorting @property in obj-c

Adds ability to sort property semantics. E.g.

@property (nonatomic, readonly, assign) NSString *foo;
@property (readonly, assign, nonatomic) NSString *bar;

can become:

@property (nonatomic, readonly, assign) NSString *foo;
@property (nonatomic, readonly, assign) NSString *bar;

The implementation is more convoluted then I had hoped/expected. The setter=foobar and getter=barfoo property specifiers messed up my initial implementation a bit and needed to be modified.

Control over the order that items will appear in is controlled via weights. The heigher the weight, the closer to the front it will be.

Don't expect this code to necessarily be accepted, but figured I would make the pull request so its a bit more public and others might pick it up / use it if they want.