NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"typeDict.pos" ascending:YES];
NSArray *sortDescriptors = [NSArray arrayWithObject:sortDescriptor];
[arr sortUsingDescriptors:sortDescriptors];
[sortDescriptor release];
每個數組裡放的是AD對象。ad對象有屬性typeDict(字典)字典裡有pos(鍵值)