Cog/Spotlight/NSArray+CogSort.m
Christopher Snowhill 85c7073649 Reformat my own source code with clang-format
Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2022-02-06 21:49:27 -08:00

19 lines
428 B
Objective-C

//
// 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
- (NSComparisonResult)compareFirstString:(NSArray *)anArray {
return [(NSString *)[self objectAtIndex:0]
caseInsensitiveCompare:(NSString *)[anArray objectAtIndex:0]];
}
@end