Dailycode.info

Short solution for short problems

iOS: SUDZC sort SOAPArray with sortUsingDescriptors

The generated code from SUDZC lacks the function available from NSMutableArray: sortUsingDescriptors.

So I added this to the SOapArray class.

In SoapArray.h add:

- (void)sortUsingDescriptors:(NSArray *) sortDescriptors;

In SoapArray.m add:

-(void)sortUsingDescriptors:(NSArray *)sortDescriptors

{

    return [self.items sortUsingDescriptors:sortDescriptors];

}