2008-02-16 13:05:30 +00:00
|
|
|
//
|
|
|
|
// NSArray+CogSort.m
|
|
|
|
// Cog
|
|
|
|
//
|
|
|
|
// Created by Matthew Grinshpun on 16/02/08.
|
|
|
|
// Copyright 2008 __MyCompanyName__. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import "NSArray+CogSort.h"
|
|
|
|
|
|
|
|
@implementation NSArray (CogSort)
|
|
|
|
|
|
|
|
// Hack to sort search results by artist
|
2022-02-07 05:49:27 +00:00
|
|
|
- (NSComparisonResult)compareFirstString:(NSArray *)anArray {
|
|
|
|
return [(NSString *)[self objectAtIndex:0]
|
|
|
|
caseInsensitiveCompare:(NSString *)[anArray objectAtIndex:0]];
|
2008-02-16 13:05:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@end
|