//
//  SpotlightResultSortingDemoWindowController.m
//  SimpleSearchApp
//
//  Created by ub on 24.07.09.
//  Copyright 2009 Udo Borkowski. All rights reserved.
//

#import "SpotlightResultSortingDemoWindowController.h"


@implementation SpotlightResultSortingDemoWindowController


- (id)init
{
	if (![super initWithWindowNibName:@"SpotlightResultSortingDemoWindow"]) {
		return nil;
	}
	
	[self.query setSortDescriptors:
	 [NSArray arrayWithObjects:
	  [[NSSortDescriptor alloc] initWithKey:(id)kMDItemDisplayName 
								  ascending:YES],
	  [[NSSortDescriptor alloc] initWithKey:(id)kMDItemTimestamp
								  ascending:NO],
	  nil]];
	
	return self;
}

@end
