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
Christopher Snowhill 2022-02-18 02:23:08 -08:00
parent 60a4266840
commit 1b48459eaa
1 changed files with 3 additions and 0 deletions

View File

@ -447,6 +447,9 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
[[NSSortDescriptor alloc] initWithKey:@"album"
ascending:ascending
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"
ascending:ascending
selector:@selector(compareTrackNumbers:)]