Skip to content

Instantly share code, notes, and snippets.

@franciscoadasme
Created June 5, 2011 06:30
Show Gist options
  • Save franciscoadasme/1008711 to your computer and use it in GitHub Desktop.
Save franciscoadasme/1008711 to your computer and use it in GitHub Desktop.
comparing two MDMFile
- (NSComparisonResult)compare:(id)object
{
if ([[self identifier] isEqualToString:[object identifier]]) return NSOrderedSame;
NSComparisonResult result = [[self identifier] compare:[object identifier]];
if (result != NSOrderedSame) return result;
return [[self fileName] compare:[object fileName]];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment