comparing with the numeric option works for sorting IP address properly, so let it do the heavy lifting for us

This commit is contained in:
Mitchell Livingston
2008-06-27 05:40:22 +00:00
parent 313885df00
commit f051a2a789
4 changed files with 11 additions and 24 deletions

View File

@@ -1592,7 +1592,7 @@ typedef enum
if (useSecond)
{
NSSortDescriptor * secondDescriptor = [[NSSortDescriptor alloc] initWithKey: @"IP" ascending: asc
selector: @selector(compareIP:)];
selector: @selector(compareFinder:)];
[descriptors addObject: secondDescriptor];
[secondDescriptor release];
}