Skip to content

Instantly share code, notes, and snippets.

@dvdsgl
Created July 25, 2009 22:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dvdsgl/155095 to your computer and use it in GitHub Desktop.
Save dvdsgl/155095 to your computer and use it in GitHub Desktop.
- (NSArray*)mergeSortArrayUsingSelector:(SEL)comparator
{
id buf[[self count]];
[self getObjects:buf];
mergesort_(buf, [self count], comparator);
return [NSArray arrayWithObjects:buf count:[self count]];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment