playqueue: Correctly check for play count when sorting

Signed-off-by: Anna Schumaker <anna@ocarinaproject.net>
This commit is contained in:
Anna Schumaker 2014-04-08 08:25:53 -04:00
parent ad1c3d6f9d
commit 22322a9b12
1 changed files with 1 additions and 1 deletions

View File

@ -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: