playqueue: Correctly check for play count when sorting
Signed-off-by: Anna Schumaker <anna@ocarinaproject.net>
This commit is contained in:
parent
ad1c3d6f9d
commit
22322a9b12
|
@ -142,7 +142,7 @@ static inline int track_compare(library :: Song &lhs, library :: Song &rhs,
|
|||
case SORT_ALBUM:
|
||||
return compare_string(lhs.album->name_lower, rhs.album->name_lower);
|
||||
case SORT_COUNT:
|
||||
return compare_uint(lhs.track->track, rhs.track->track);
|
||||
return compare_uint(lhs.track->play_count, rhs.track->play_count);
|
||||
case SORT_GENRE:
|
||||
return compare_string(lhs.genre->key_lower, rhs.genre->key_lower);
|
||||
case SORT_LENGTH:
|
||||
|
|
Loading…
Reference in New Issue
Block a user