Commit 438d9dee authored by Rémi Duraffort's avatar Rémi Duraffort

Sort the playlist by album then by track number when sorting by album.

Close #1492.
parent 32932c15
......@@ -188,6 +188,9 @@ static int playlist_ItemArraySort( playlist_t *p_playlist, int i_items,
else if( i_mode == SORT_ALBUM )
{
DO_META_SORT( Album );
/* Sort by tracknumber if albums are the same */
if( i_test == 0 )
DO_META_SORT_ADV( TrackNumber, VLC_TRUE );
}
else if( i_mode == SORT_TRACK_NUMBER )
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment