Track number column should also sort by disc
Apparently, the sort descriptors are going by data members of the array, not by the column identifiers, or their textual contents. Signed-off-by: Christopher Snowhill <kode54@gmail.com>CQTexperiment
parent
60a4266840
commit
1b48459eaa
|
@ -447,6 +447,9 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
|
||||||
[[NSSortDescriptor alloc] initWithKey:@"album"
|
[[NSSortDescriptor alloc] initWithKey:@"album"
|
||||||
ascending:ascending
|
ascending:ascending
|
||||||
selector:@selector(caseInsensitiveCompare:)],
|
selector:@selector(caseInsensitiveCompare:)],
|
||||||
|
[[NSSortDescriptor alloc] initWithKey:@"disc" // Yes, this, even though it's not actually a column
|
||||||
|
ascending:ascending
|
||||||
|
selector:@selector(compareTrackNumbers:)],
|
||||||
[[NSSortDescriptor alloc] initWithKey:@"track"
|
[[NSSortDescriptor alloc] initWithKey:@"track"
|
||||||
ascending:ascending
|
ascending:ascending
|
||||||
selector:@selector(compareTrackNumbers:)]
|
selector:@selector(compareTrackNumbers:)]
|
||||||
|
|
Loading…
Reference in New Issue