Fix rating sorting
This apparently fixes sorting by rating. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
f62a7c5fed
commit
16c1cf4b65
1 changed files with 5 additions and 1 deletions
|
@ -657,13 +657,17 @@ static void *playlistControllerContext = &playlistControllerContext;
|
||||||
case 10:
|
case 10:
|
||||||
case 11:
|
case 11:
|
||||||
case 12:
|
case 12:
|
||||||
case 13:
|
|
||||||
case 14:
|
case 14:
|
||||||
case 15:
|
case 15:
|
||||||
sortDescriptor = [[NSSortDescriptor alloc] initWithKey:[tableColumn identifier] ascending:ascending selector:@selector(caseInsensitiveCompare:)];
|
sortDescriptor = [[NSSortDescriptor alloc] initWithKey:[tableColumn identifier] ascending:ascending selector:@selector(caseInsensitiveCompare:)];
|
||||||
sortDescriptors = @[sortDescriptor];
|
sortDescriptors = @[sortDescriptor];
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 13:
|
||||||
|
sortDescriptor = [[NSSortDescriptor alloc] initWithKey:[tableColumn identifier] ascending:ascending selector:@selector(compare:)];
|
||||||
|
sortDescriptors = @[sortDescriptor];
|
||||||
|
break;
|
||||||
|
|
||||||
case 6:
|
case 6:
|
||||||
case 7:
|
case 7:
|
||||||
sortDescriptor = [[NSSortDescriptor alloc] initWithKey:[tableColumn identifier] ascending:ascending selector:@selector(compareTrackNumbers:)];
|
sortDescriptor = [[NSSortDescriptor alloc] initWithKey:[tableColumn identifier] ascending:ascending selector:@selector(compareTrackNumbers:)];
|
||||||
|
|
Loading…
Reference in a new issue